Commit Graph

51 Commits

Author SHA1 Message Date
Serhiy Storchaka
37c02acb6f Issue #25624: ZipFile now always writes a ZIP_STORED header for directory
entries.  Patch by Dingyuan Wang.
2015-11-22 14:56:22 +02:00
Serhiy Storchaka
1a31cba464 Issue #25686: test_shutil no longer uses the distutils package for running
external archivers.
2015-11-21 14:11:57 +02:00
Serhiy Storchaka
0d649406ae Issue #25607: Restore old distutils logging threshold after running tests that
parse command line arguments.
2015-11-12 19:46:23 +02:00
Serhiy Storchaka
672237e887 Fixed tests for shutil.make_archive() with relative base_name in the case when
the path of the directory for temporary files contains symlinks.
2015-09-08 09:59:02 +03:00
Serhiy Storchaka
fe45f65187 Issue #24982: shutil.make_archive() with the "zip" format now adds entries
for directories (including empty directories) in ZIP file.
Added test for comparing shutil.make_archive() with the "zip" command.
2015-09-08 05:47:01 +03:00
Serhiy Storchaka
ad7b0cda8a Issue #25018: Fixed testing shutil.make_archive() with relative base_name on
Windows.  The test now makes sense on non-Windows.  Added similar test for
zip format.
2015-09-07 19:58:23 +03:00
Serhiy Storchaka
0ecf462b8e Explicitly test archive name in shutil.make_archive() tests to expose failure
details in issue25018.
2015-09-07 13:55:25 +03:00
Serhiy Storchaka
04861dc82f Fix, refactor and extend tests for shutil.make_archive(). 2015-09-06 18:31:23 +03:00
Serhiy Storchaka
7c7b4b5d86 Backport support.change_cwd() and use it in tests. 2015-09-06 14:16:18 +03:00
Serhiy Storchaka
c354285f2b Issue #21280: Fixed a bug in shutil.make_archive() when create an archive of
current directory in current directory.
2014-11-28 00:50:06 +02:00
Serhiy Storchaka
a4b9c878e4 Issue #19856: shutil.move() failed to move a directory to other directory
on Windows if source name ends with os.altsep.
2014-02-11 10:30:06 +02:00
Zachary Ware
1f70221b86 Issue #19572: More silently skipped tests explicitly skipped. 2013-12-10 14:09:20 -06:00
Serhiy Storchaka
32e23e739f Issue #18702: All skipped tests now reported as skipped. 2013-11-03 23:15:46 +02:00
Ned Deily
acdc56d0d0 Issue #14662: Prevent shutil failures on OS X when destination does not
support chflag operations.  (Patch by Hynek Schlawack)
2012-05-10 17:45:49 -07:00
Éric Araujo
e7329f47e7 Guard shutil._make_archive against a logger=None argument.
Backporting two lines from the 3.x tests was enough to trigger the bug.
I also took the opportunity of making the logging call lazy.
2011-08-19 03:07:39 +02:00
Ronald Oussoren
58d6b1b7a4 Backport fix for issue #10684 from 3.x 2011-05-06 11:31:33 +02:00
Ezio Melotti
2623a37852 Merged revisions 86596 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line

  #9424: Replace deprecated assert* methods in the Python test suite.
........
2010-11-21 13:34:58 +00:00
Éric Araujo
1c4253d600 Merged revisions 86235 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86235 | eric.araujo | 2010-11-06 03:12:51 +0100 (sam., 06 nov. 2010) | 2 lines

  Fix one omission in r78359
........
2010-11-17 23:11:08 +00:00
Antoine Pitrou
99d848bd4b Merged revisions 85503 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85503 | antoine.pitrou | 2010-10-15 00:11:44 +0200 (ven., 15 oct. 2010) | 2 lines

  More proper closing of files
........
2010-10-14 22:22:30 +00:00
Ezio Melotti
62c3c79426 Replace deprecated fail* methods with the equivalent assert* ones. 2010-06-05 22:28:10 +00:00
Tarek Ziadé
38f81223ae Fixed #4265: shutil.copyfile() was leaking file descriptors when disk fills 2010-05-05 22:15:31 +00:00
Tarek Ziadé
e593fad81b removed ztar support in shutil.make_archive 2010-04-20 21:09:06 +00:00
Florent Xicluna
945a8ba635 Cleanup some test cases using check_warnings and check_py3k_warnings. 2010-03-17 19:15:56 +00:00
Tarek Ziadé
48cc8dc958 added make_archive (and secondary APIs) to shutil 2010-02-23 05:16:41 +00:00
Antoine Pitrou
4ac6b93c00 Make test_shutil clean up after itself 2009-11-04 00:50:26 +00:00