We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7ff6e7 commit 3197fe0Copy full SHA for 3197fe0
importlib_resources/tests/update-zips.py
@@ -21,9 +21,9 @@ def main():
21
>>> monkeypatch.setattr(zipfile, 'ZipFile', mock.MagicMock())
22
>>> print(); main() # print workaround for bpo-32509
23
<BLANKLINE>
24
- .../data01/... -> ziptestdata/...
+ ...data01... -> ziptestdata/...
25
...
26
- .../data02/... -> ziptestdata/...
+ ...data02... -> ziptestdata/...
27
28
"""
29
suffixes = '01', '02'
@@ -35,7 +35,7 @@ def generate(suffix):
35
zfpath = root / f'zipdata{suffix}/ziptestdata.zip'
36
with zipfile.ZipFile(zfpath, 'w') as zf:
37
for src, rel in walk(root / f'data{suffix}'):
38
- dst = 'ziptestdata' / rel
+ dst = 'ziptestdata' / pathlib.PurePosixPath(rel.as_posix())
39
print(src, '->', dst)
40
zf.write(src, dst)
41
0 commit comments