diff options
| author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-16 19:48:51 +0200 |
|---|---|---|
| committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-16 19:48:51 +0200 |
| commit | 5bbae64025d2dd4378bc28a08f311a61c6478565 (patch) | |
| tree | 8e78e9a6f3e30e843235aa0c9d8a4ba543e52ece | |
| parent | 6b2cfd3d4e003b9a39b2b3a89a150bce9ecdc250 (diff) | |
| download | python-setuptools-git-5bbae64025d2dd4378bc28a08f311a61c6478565.tar.gz | |
#11420: make test suite pass with -B/DONTWRITEBYTECODE set. Initial patch by Thomas Wouters.
| -rw-r--r-- | tests/test_bdist_dumb.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_bdist_dumb.py b/tests/test_bdist_dumb.py index 1037d821..0ad32d42 100644 --- a/tests/test_bdist_dumb.py +++ b/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(): |
