diff options
Diffstat (limited to 'Lib/packaging/tests/test_command_build_py.py')
-rw-r--r-- | Lib/packaging/tests/test_command_build_py.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): |