Skip to content

Commit 1c1a2b3

Browse files
authored
Merge branch 'master' into backports
2 parents 6aa23c5 + 45db54b commit 1c1a2b3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test_zipp.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import io
66
import zipfile
7-
import posixpath
87
import contextlib
98
import pathlib
109
import unittest
@@ -109,6 +108,14 @@ def test_iterdir_and_types(self):
109108
i, = h.iterdir()
110109
assert i.is_file()
111110

111+
def test_subdir_is_dir(self):
112+
for alpharep in self.zipfile_alpharep():
113+
root = zipp.Path(alpharep)
114+
assert (root / 'b').is_dir()
115+
assert (root / 'b/').is_dir()
116+
assert (root / 'g').is_dir()
117+
assert (root / 'g/').is_dir()
118+
112119
def test_open(self):
113120
for alpharep in self.zipfile_alpharep():
114121
root = zipp.Path(alpharep)

0 commit comments

Comments
 (0)