cpython: 72da53d3074b (original) (raw)

Mercurial > cpython

changeset 104663:72da53d3074b

Issue #28488: shutil.make_archive() no longer adds entry "./" to ZIP archive. [#28488]

Serhiy Storchaka storchaka@gmail.com
date Sun, 23 Oct 2016 15:58:10 +0300
parents 94d34354bef1(current diff)e93149fee04d(diff)
children 3e7da46aead3
files Misc/NEWS
diffstat 3 files changed, 19 insertions(+), 3 deletions(-)[+] [-] Lib/shutil.py 7 Lib/test/test_shutil.py 13 Misc/NEWS 2

line wrap: on

line diff

--- a/Lib/shutil.py +++ b/Lib/shutil.py @@ -680,9 +680,10 @@ def _make_zipfile(base_name, base_dir, v with zipfile.ZipFile(zip_filename, "w", compression=zipfile.ZIP_DEFLATED) as zf: path = os.path.normpath(base_dir)

--- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -1066,6 +1066,19 @@ class TestShutil(unittest.TestCase): with support.change_cwd(work_dir): base_name = os.path.abspath(rel_base_name)

+

+

self.assertEqual(res, base_name + '.zip')

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -16,6 +16,8 @@ Core and Builtins