diff options
author | Alex Grönholm <alex.gronholm@nextday.fi> | 2019-05-12 00:23:35 +0300 |
---|---|---|
committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2019-05-12 00:27:58 +0300 |
commit | 46b045676c70b282365fa86082be9206de4adaf0 (patch) | |
tree | 6831cf2336904ca6e95b57832a8e18bac68acd45 /tests/test_wheelfile.py | |
parent | 7b782219d5322ee66cef293c5c5b49fbd4133a0d (diff) | |
download | wheel-git-46b045676c70b282365fa86082be9206de4adaf0.tar.gz |
Revert "Include directory entries when building wheel (#289)"
This reverts commit 369b1eeb. Fixes #294.
Diffstat (limited to 'tests/test_wheelfile.py')
-rw-r--r-- | tests/test_wheelfile.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/test_wheelfile.py b/tests/test_wheelfile.py index 9fe3ce2..db11bcd 100644 --- a/tests/test_wheelfile.py +++ b/tests/test_wheelfile.py @@ -2,7 +2,6 @@ from __future__ import unicode_literals import sys -import operator from zipfile import ZipFile, ZIP_DEFLATED import pytest @@ -173,26 +172,3 @@ def test_attributes(tmpdir_factory, wheel_path): info = zf.getinfo('test-1.0.dist-info/RECORD') permissions = (info.external_attr >> 16) & 0o777 assert permissions == 0o664 - - -def test_directories(tmpdir, wheel_path): - """ - The WheelFile should contain entries for directories, - empty and not. - """ - build_dir = tmpdir - sub_dir = build_dir / 'sub' - sub_dir.mkdir() - (sub_dir / '__init__.py').write_text('', encoding='utf-8') - empty_dir = build_dir / 'empty' - empty_dir.mkdir() - - with WheelFile(wheel_path, 'w') as wf: - wf.write_files(str(build_dir)) - - with ZipFile(wheel_path, 'r') as zf: - infos = zf.infolist() - - names = set(map(operator.attrgetter('filename'), infos)) - assert 'sub/' in names - assert 'empty/' in names |