diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-16 17:48:51 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-16 17:48:51 (GMT) |
commit | c28f6fa505f717698038b41492265129c77dfc0e (patch) | |
tree | bad09c02133d9768950a6d79a53728232d8646a0 /Lib/distutils | |
parent | 58e1e50be1c19975cdff92f0670b9cff985b2308 (diff) | |
download | cpython-c28f6fa505f717698038b41492265129c77dfc0e.zip cpython-c28f6fa505f717698038b41492265129c77dfc0e.tar.gz cpython-c28f6fa505f717698038b41492265129c77dfc0e.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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/distutils/tests/test_bdist_dumb.py b/Lib/distutils/tests/test_bdist_dumb.py index 1037d82..0ad32d4 100644 --- a/Lib/distutils/tests/test_bdist_dumb.py +++ b/Lib/distutils/tests/test_bdist_dumb.py @@ -88,9 +88,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.%s.pyc' % imp.get_tag(), - 'foo.py'] + wanted = ['foo-0.1-py%s.%s.egg-info' % sys.version_info[:2], 'foo.py'] + if not sys.dont_write_bytecode: + wanted.append('foo.%s.pyc' % imp.get_tag()) self.assertEqual(contents, sorted(wanted)) def test_suite(): |