diff options
Diffstat (limited to 'tests/sources/zip.py')
-rw-r--r-- | tests/sources/zip.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/sources/zip.py b/tests/sources/zip.py index 273c0c3a4..64ef61c21 100644 --- a/tests/sources/zip.py +++ b/tests/sources/zip.py @@ -18,12 +18,12 @@ DATA_DIR = os.path.join( def _assemble_zip(workingdir, dstfile): old_dir = os.getcwd() os.chdir(workingdir) - with zipfile.ZipFile(dstfile, "w") as zip: + with zipfile.ZipFile(dstfile, "w") as zipfp: for root, dirs, files in os.walk('.'): names = dirs + files names = [os.path.join(root, name) for name in names] for name in names: - zip.write(name) + zipfp.write(name) os.chdir(old_dir) |