summaryrefslogtreecommitdiff
path: root/Lib/distutils/tests/test_bdist_dumb.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-12-06 00:02:10 +0200
committerGitHub <noreply@github.com>2018-12-06 00:02:10 +0200
commitb2742ba5f9ce8a6108202e0645662f2b58da423b (patch)
treeaf34d5b9b4559bd5f31b76d23bf3702473c05e58 /Lib/distutils/tests/test_bdist_dumb.py
parentabe74feb912292aa4df4e70d39e85d0bcd425436 (diff)
downloadcpython-git-b2742ba5f9ce8a6108202e0645662f2b58da423b.tar.gz
[2.7] bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419). (GH-10950)
(cherry picked from commit 67a93b3a0b3814e97ef9d077b21325fc8ce351b2)
Diffstat (limited to 'Lib/distutils/tests/test_bdist_dumb.py')
-rw-r--r--Lib/distutils/tests/test_bdist_dumb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/tests/test_bdist_dumb.py b/Lib/distutils/tests/test_bdist_dumb.py
index 5db3a850f8..ef9e68131b 100644
--- a/Lib/distutils/tests/test_bdist_dumb.py
+++ b/Lib/distutils/tests/test_bdist_dumb.py
@@ -86,7 +86,7 @@ class BuildDumbTestCase(support.TempdirManager,
finally:
fp.close()
- contents = sorted(os.path.basename(fn) for fn in contents)
+ contents = sorted(filter(None, map(os.path.basename, contents)))
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')