Commit ebbb14c1 authored by Tarek Ziade's avatar Tarek Ziade

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

parent 2db2d3be
...@@ -58,7 +58,8 @@ class BuildPyTestCase(support.TempdirManager, ...@@ -58,7 +58,8 @@ class BuildPyTestCase(support.TempdirManager,
pkgdest = os.path.join(destination, "pkg") pkgdest = os.path.join(destination, "pkg")
files = os.listdir(pkgdest) files = os.listdir(pkgdest)
self.assertTrue("__init__.py" in files) 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) self.assertTrue("README.txt" in files)
def test_empty_package_dir (self): def test_empty_package_dir (self):
......
...@@ -61,7 +61,8 @@ class BuildPyTestCase(support.TempdirManager, ...@@ -61,7 +61,8 @@ class BuildPyTestCase(support.TempdirManager,
pkgdest = os.path.join(destination, "pkg") pkgdest = os.path.join(destination, "pkg")
files = os.listdir(pkgdest) files = os.listdir(pkgdest)
self.assertIn("__init__.py", files) 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) self.assertIn("README.txt", files)
def test_empty_package_dir(self): def test_empty_package_dir(self):
......
...@@ -153,6 +153,9 @@ Core and Builtins ...@@ -153,6 +153,9 @@ Core and Builtins
Library 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 - Issue #12065: connect_ex() on an SSL socket now returns the original errno
when the socket's timeout expires (it used to return None). when the socket's timeout expires (it used to return None).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment