Issue #12120, Issue #12119: tests were missing a sys.dont_write_bytecode check

This commit is contained in:
Tarek Ziade 2011-05-19 19:56:12 +02:00
parent 2db2d3beeb
commit ebbb14c1a1
3 changed files with 7 additions and 2 deletions

View File

@ -58,7 +58,8 @@ class BuildPyTestCase(support.TempdirManager,
pkgdest = os.path.join(destination, "pkg")
files = os.listdir(pkgdest)
self.assertTrue("__init__.py" in files)
self.assertTrue("__init__.pyc" in files)
if not sys.dont_write_bytecode:
self.assertTrue("__init__.pyc" in files)
self.assertTrue("README.txt" in files)
def test_empty_package_dir (self):

View File

@ -61,7 +61,8 @@ class BuildPyTestCase(support.TempdirManager,
pkgdest = os.path.join(destination, "pkg")
files = os.listdir(pkgdest)
self.assertIn("__init__.py", files)
self.assertIn("__init__.pyc", files)
if not sys.dont_write_bytecode:
self.assertIn("__init__.pyc", files)
self.assertIn("README.txt", files)
def test_empty_package_dir(self):

View File

@ -153,6 +153,9 @@ Core and Builtins
Library
-------
- Issue #12120, #12119: skip a test in packaging and distutils
if sys.dont_write_bytecode is set to True.
- Issue #12065: connect_ex() on an SSL socket now returns the original errno
when the socket's timeout expires (it used to return None).