summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-03-16 19:49:20 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-03-16 19:49:20 (GMT)
commite5e7a7cbf450f80fa9a88038878b6bd525313f37 (patch)
tree02534825505cbbe06aa12dfda5386330a0d67605 /Lib/distutils
parente3eb0615af1389f221cb617de71fe9bb42bb7769 (diff)
parentc28f6fa505f717698038b41492265129c77dfc0e (diff)
downloadcpython-e5e7a7cbf450f80fa9a88038878b6bd525313f37.zip
cpython-e5e7a7cbf450f80fa9a88038878b6bd525313f37.tar.gz
cpython-e5e7a7cbf450f80fa9a88038878b6bd525313f37.tar.bz2
#11420: merge with 3.2.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/tests/test_bdist_dumb.py6
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():