summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_shutil.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #14061: Misc fixes and cleanups in archiving code in shutil.Serhiy Storchaka2016-12-161-3/+2
| | | | | | Improved the documentation and tests for make_archive(). Improved error handling when corresponding compress module is not available. External zip executable is now used if the zlib module is not available.
* Issue #28488: shutil.make_archive() no longer adds entry "./" to ZIP archive.Serhiy Storchaka2016-10-231-0/+13
|
* Issue #25624: ZipFile now always writes a ZIP_STORED header for directorySerhiy Storchaka2015-11-221-0/+23
| | | | entries. Patch by Dingyuan Wang.
* Issue #25686: test_shutil no longer uses the distutils package for runningSerhiy Storchaka2015-11-211-6/+4
| | | | external archivers.
* Issue #25607: Restore old distutils logging threshold after running tests thatSerhiy Storchaka2015-11-121-1/+1
| | | | parse command line arguments.
* Fixed tests for shutil.make_archive() with relative base_name in the case whenSerhiy Storchaka2015-09-081-2/+2
| | | | the path of the directory for temporary files contains symlinks.
* Issue #24982: shutil.make_archive() with the "zip" format now adds entriesSerhiy Storchaka2015-09-081-2/+29
| | | | | for directories (including empty directories) in ZIP file. Added test for comparing shutil.make_archive() with the "zip" command.
* Issue #25018: Fixed testing shutil.make_archive() with relative base_name onSerhiy Storchaka2015-09-071-9/+19
| | | | | Windows. The test now makes sense on non-Windows. Added similar test for zip format.
* Explicitly test archive name in shutil.make_archive() tests to expose failureSerhiy Storchaka2015-09-071-11/+11
| | | | details in issue25018.
* Fix, refactor and extend tests for shutil.make_archive().Serhiy Storchaka2015-09-061-73/+66
|
* Backport support.change_cwd() and use it in tests.Serhiy Storchaka2015-09-061-37/+9
|
* Issue #21280: Fixed a bug in shutil.make_archive() when create an archive ofSerhiy Storchaka2014-11-271-0/+23
| | | | current directory in current directory.
* Issue #19856: shutil.move() failed to move a directory to other directorySerhiy Storchaka2014-02-111-0/+9
| | | | on Windows if source name ends with os.altsep.
* Issue #19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-101-8/+4
|
* Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-56/+58
|
* Issue #14662: Prevent shutil failures on OS X when destination does notNed Deily2012-05-111-0/+30
| | | | support chflag operations. (Patch by Hynek Schlawack)
* Guard shutil._make_archive against a logger=None argument.Éric Araujo2011-08-191-0/+4
| | | | | 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.
* Backport fix for issue #10684 from 3.xRonald Oussoren2011-05-061-0/+18
|
* Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-4/+4
| | | | | | | | | | 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. ........
* Merged revisions 86235 via svnmerge fromÉric Araujo2010-11-171-0/+1
| | | | | | | | | | 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 ........
* Merged revisions 85503 via svnmerge fromAntoine Pitrou2010-10-141-4/+8
| | | | | | | | | | 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 ........
* Replace deprecated fail* methods with the equivalent assert* ones.Ezio Melotti2010-06-051-11/+11
|
* Fixed #4265: shutil.copyfile() was leaking file descriptors when disk fillsTarek Ziadé2010-05-051-1/+106
|
* removed ztar support in shutil.make_archiveTarek Ziadé2010-04-201-30/+0
|
* Cleanup some test cases using check_warnings and check_py3k_warnings.Florent Xicluna2010-03-171-12/+8
|
* added make_archive (and secondary APIs) to shutilTarek Ziadé2010-02-231-1/+316
|
* Make test_shutil clean up after itselfAntoine Pitrou2009-11-041-53/+57
|
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-12/+12
|
* Issue #3002: `shutil.copyfile()` and `shutil.copytree()` now raise anAntoine Pitrou2009-05-011-0/+33
| | | | error when a named pipe is encountered, rather than blocking infinitely.
* fix test_shutil on ZFS #5676Benjamin Peterson2009-04-291-2/+16
|
* make destinsrc privateBenjamin Peterson2009-02-071-4/+4
|
* Issue #2047: shutil.move() could believe that its destination path wasAntoine Pitrou2009-01-291-0/+22
| | | | | inside its source path if it began with the same letters (e.g. "src" vs. "src.new").
* #2663: support an *ignore* argument to shutil.copytree(). Patch by Tarek Ziade.Georg Brandl2008-07-051-0/+76
| | | | This is a new feature, but Barry authorized adding it in the beta period.
* Issue 1577: shutil.move() where destination is a directory was doing aSean Reifscheider2008-03-181-12/+115
| | | | copy, now it is doing a os.rename() if it's on the same file-system.
* #1669: don't allow shutil.rmtree() to be called on a symlink.Georg Brandl2008-01-201-0/+14
|
* Another fix for test_shutil. Martin pointed out that it breaks some build botsChristian Heimes2007-11-201-1/+3
|
* Fixed bug #1470Christian Heimes2007-11-201-5/+2
|
* test_copytree_simple(): This was leaving behind two new tempTim Peters2006-08-101-16/+36
| | | | | | | | | | | | | | directories each time it ran, at least on Windows. Several changes: explicitly closed all files; wrapped long lines; stopped suppressing errors when removing a file or directory fails (removing /shouldn't/ fail!); and changed what appeared to be incorrect usage of os.removedirs() (that doesn't remove empty directories at and /under/ the given path, instead it must be given an empty leaf directory and then deletes empty directories moving /up/ the path -- could be that the conceptually simpler shutil.rmtree() was really actually intended here).
* Whitespace normalization.Tim Peters2006-07-311-3/+3
|
* Don't copy directory stat times in shutil.copytree on WindowsMartin v. Löwis2006-07-301-0/+27
| | | | Fixes #1525866.
* Implement os.{chdir,rename,rmdir,remove} using Win32 directly.Martin v. Löwis2006-05-041-2/+2
|
* Use os.geteuid() for checking whether we are root, as suggested byJohannes Gijsbers2004-12-121-1/+1
| | | | Michael Hudson.
* SF bug #1076467: don't run test_on_error as root, as the permissionJohannes Gijsbers2004-12-061-2/+6
| | | | | errors don't get provoked that way. Also add a bunch of cross-references to bugs.
* Bug #1071513: don't test on Cygwin, as chmod doesn't work reliably thereJohannes Gijsbers2004-11-231-1/+5
| | | | | | | (http://www.cygwin.com/faq/faq_3.html#SEC41). Also check whether onerror has actually been called so this test will fail on assertion instead of on trying to chmod a non-existent file.
* test_on_error(): Rewrite so it works on WinXP too. Unsure about 95/98/ME.Tim Peters2004-11-011-7/+13
|
* Bug #1048941: shutil.rmtree error handling was always brokenJohannes Gijsbers2004-10-311-3/+28
| | | | | Rewrite rmtree again, this time without os.walk(). Error handling had been broken since Python 2.3, and the os.walk() version inherited this.
* Document not-completely-obvious behavior in a test.Johannes Gijsbers2004-09-111-0/+7
|
* Unwrap too-smart loop: we can't use `src` for both hard and symbolic links.Johannes Gijsbers2004-08-141-8/+16
|
* Raise an exception when src and dst refer to the same file via a hard link or aJohannes Gijsbers2004-08-141-0/+21
| | | | symbolic link (bug #851123 / patch #854853, thanks Gregory Ball).
* - Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affectsGuido van Rossum2004-07-141-0/+1
| | | | | | | | the documented behavior: the function passed to the onerror() handler can now also be os.listdir. [I could've sworn I checked this in, but apparently I didn't, or it got lost???]