diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-16 18:04:44 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-16 18:04:44 (GMT) |
commit | e015b6b1fc5a8ee42c8643ff98b4a1559fe1a551 (patch) | |
tree | 10e72da88156ec05df28e8dad4f534b1c14bacaa /Lib/distutils | |
parent | b1ed05c7a5158e9cf59b48dd12ed96233d2490ce (diff) | |
download | cpython-e015b6b1fc5a8ee42c8643ff98b4a1559fe1a551.zip cpython-e015b6b1fc5a8ee42c8643ff98b4a1559fe1a551.tar.gz cpython-e015b6b1fc5a8ee42c8643ff98b4a1559fe1a551.tar.bz2 |
#11420: make test suite pass with -B/DONTWRITEBYTECODE set. Initial patch by Thomas Wouters.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/tests/test_bdist_dumb.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_bdist_dumb.py b/Lib/distutils/tests/test_bdist_dumb.py index 3378f49..5db3a85 100644 --- a/Lib/distutils/tests/test_bdist_dumb.py +++ b/Lib/distutils/tests/test_bdist_dumb.py @@ -87,8 +87,9 @@ class BuildDumbTestCase(support.TempdirManager, fp.close() contents = sorted(os.path.basename(fn) for fn in contents) - wanted = ['foo-0.1-py%s.%s.egg-info' % sys.version_info[:2], - 'foo.py', 'foo.pyc'] + wanted = ['foo-0.1-py%s.%s.egg-info' % sys.version_info[:2], 'foo.py'] + if not sys.dont_write_bytecode: + wanted.append('foo.pyc') self.assertEqual(contents, sorted(wanted)) def test_finalize_options(self): |