diff options
author | Tarek Ziade <tarek@ziade.org> | 2011-05-19 17:56:12 (GMT) |
---|---|---|
committer | Tarek Ziade <tarek@ziade.org> | 2011-05-19 17:56:12 (GMT) |
commit | ebbb14c1a1ec226b06f96d1fc581122558e1385e (patch) | |
tree | 46ba936c411f17d0dd62b0528666cc10ab09049b /Lib | |
parent | 2db2d3beeb24685495ec721b78159a8944423639 (diff) | |
download | cpython-ebbb14c1a1ec226b06f96d1fc581122558e1385e.zip cpython-ebbb14c1a1ec226b06f96d1fc581122558e1385e.tar.gz cpython-ebbb14c1a1ec226b06f96d1fc581122558e1385e.tar.bz2 |
Issue #12120, Issue #12119: tests were missing a sys.dont_write_bytecode check
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/tests/test_build_py.py | 3 | ||||
-rw-r--r-- | Lib/packaging/tests/test_command_build_py.py | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_build_py.py b/Lib/distutils/tests/test_build_py.py index da3232c..00a57cc 100644 --- a/Lib/distutils/tests/test_build_py.py +++ b/Lib/distutils/tests/test_build_py.py @@ -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): diff --git a/Lib/packaging/tests/test_command_build_py.py b/Lib/packaging/tests/test_command_build_py.py index 3c5630b..b6d60de 100644 --- a/Lib/packaging/tests/test_command_build_py.py +++ b/Lib/packaging/tests/test_command_build_py.py @@ -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): |