File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
importlib_resources/tests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ def main():
21
21
>>> monkeypatch.setattr(zipfile, 'ZipFile', mock.MagicMock())
22
22
>>> print(); main() # print workaround for bpo-32509
23
23
<BLANKLINE>
24
- .../ data01/ ... -> ziptestdata/...
24
+ ...data01... -> ziptestdata/...
25
25
...
26
- .../ data02/ ... -> ziptestdata/...
26
+ ...data02... -> ziptestdata/...
27
27
...
28
28
"""
29
29
suffixes = '01' , '02'
@@ -35,7 +35,7 @@ def generate(suffix):
35
35
zfpath = root / f'zipdata{ suffix } /ziptestdata.zip'
36
36
with zipfile .ZipFile (zfpath , 'w' ) as zf :
37
37
for src , rel in walk (root / f'data{ suffix } ' ):
38
- dst = 'ziptestdata' / rel
38
+ dst = 'ziptestdata' / pathlib . PurePosixPath ( rel . as_posix ())
39
39
print (src , '->' , dst )
40
40
zf .write (src , dst )
41
41
You can’t perform that action at this time.
0 commit comments