[Python-checkins] distutils2: made sure that we test both side of the skip_build option

tarek.ziade python-checkins at python.org
Sun Jan 23 15:48:23 CET 2011


tarek.ziade pushed b8dc0e4eb3ea to distutils2:

http://hg.python.org/distutils2/rev/b8dc0e4eb3ea
changeset:   885:b8dc0e4eb3ea
parent:      872:f52d3aea3fe8
user:        Yannick Gingras <ygingras at ygingras.net>
date:        Thu Dec 09 00:33:34 2010 -0500
summary:
  made sure that we test both side of the skip_build option

files:
  distutils2/tests/test_command_bdist.py

diff --git a/distutils2/tests/test_command_bdist.py b/distutils2/tests/test_command_bdist.py
--- a/distutils2/tests/test_command_bdist.py
+++ b/distutils2/tests/test_command_bdist.py
@@ -49,8 +49,14 @@
     def test_skip_build(self):
         pkg_pth, dist = self.create_dist()
         cmd = bdist(dist)
+        cmd.skip_build = False
+        cmd.formats = ['ztar']
+        cmd.ensure_finalized()
+        self.assertFalse(self._get_platform_called)
+
+        pkg_pth, dist = self.create_dist()
+        cmd = bdist(dist)
         cmd.skip_build = True
-        
         cmd.formats = ['ztar']
         cmd.ensure_finalized()
         self.assertTrue(self._get_platform_called)

--
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list