summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_shutil.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * | #15872: Fix shutil.rmtree error tests for WindowsHynek Schlawack2012-12-101-1/+5
| |\ \ | | |/
| | * #15872: Fix shutil.rmtree error tests for WindowsHynek Schlawack2012-12-101-1/+5
| | |
* | | #15872: Fix 3.3 regression introduced by the new fd-based shutil.rmtreeHynek Schlawack2012-12-101-1/+37
|\ \ \ | |/ / | | | | | | | | | | | | It caused rmtree to not ignore certain errors when ignore_errors was set. Patch by Alessandro Moura and Serhiy Storchaka.
| * | #15872: Fix 3.3 regression introduced by the new fd-based shutil.rmtreeHynek Schlawack2012-12-101-1/+37
| |\ \ | | |/ | | | | | | | | | | | | It caused rmtree to not ignore certain errors when ignore_errors was set. Patch by Alessandro Moura and Serhiy Storchaka.
| | * #15872: Add tests for a 3.3 regression in the new fd-based shutil.rmtreeHynek Schlawack2012-12-101-0/+46
| | | | | | | | | | | | | | | It cause shutil.rmtree not ignore all errors. Also add a test ensuring that rmtree fails when being called on a symlink. Patch by Serhiy Storchaka.
| | * Issue #14662: Prevent shutil failures on OS X when destination does notNed Deily2012-05-111-0/+30
| | | | | | | | | | | | support chflag operations. (Patch by Hynek Schlawack)
* | | #1492704: Ensure and document backward compatibility of the changeHynek Schlawack2012-10-281-0/+2
| | |
* | | Closes #1492704: Make shutil.copyfile() raise a distinct SameFileErrorHynek Schlawack2012-10-071-3/+12
|/ / | | | | | | Patch by Atsuo Ishimoto.
* | #1492704: Backout and wait for 3.4Hynek Schlawack2012-07-191-12/+3
| |
* | #1492704: Make shutil.copyfile() raise a distinct SameFileErrorHynek Schlawack2012-07-191-3/+12
| | | | | | | | Patch by Atsuo Ishimoto.
* | #15238: Fix xattr related shutil.copystat testsHynek Schlawack2012-07-161-2/+1
| | | | | | | | | | | | | | - Loosen up test as Fedora has implicit xattrs - Actually test the destination for xattrs Should make Fedora buildbot green again.
* | Issue #15202: Consistently use the name "follow_symlinks" forLarry Hastings2012-07-151-14/+14
| | | | | | | | new parameters in os and shutil functions. Patch by Serhiy Storchaka.
* | - Issue #15238: shutil.copystat now copies Linux "extended attributes".Larry Hastings2012-07-151-0/+10
| |
* | Check for all used fd-based functions in shutil.rmdir, closes #15218Hynek Schlawack2012-06-291-1/+5
| |
* | #4489: Don't follow ever symlinks in rmtreeHynek Schlawack2012-06-281-1/+33
| | | | | | | | Also added several regression tests.
* | Issue #15817: Bugfix: remove temporary directories test_shutil was leavingLarry Hastings2012-06-261-0/+3
| | | | | | | | behind.
* | #4489 Make fd based rmtree work on bytesHynek Schlawack2012-06-251-0/+9
| |
* | Remove debug output from test_shutilHynek Schlawack2012-06-241-2/+0
| |
* | Issue #4489: Rename the feature marker for the symlink resistant rmtree and ↵Nick Coghlan2012-06-241-2/+2
| | | | | | | | store it as a function attribute
* | Avoid depending on directory iteration order in test_shutilAntoine Pitrou2012-06-231-6/+5
| |
* | Add debug output to test_shutilAntoine Pitrou2012-06-231-0/+2
| |
* | Proper cleanup in test_shutil, even in case of error.Antoine Pitrou2012-06-231-8/+6
| |
* | #4489: Fix usage of fd-based functions to new api introduced earlier todayHynek Schlawack2012-06-231-2/+21
| | | | | | | | | | | | | | | | Also add an explicit test for safe implementation usage on supported platforms. As a side effect, this commit adds a module-level attribute 'rmtree_is_safe' which offers introspection whether the current rmtree implementation is safe against symlink attacks.
* | #4489: Add a shutil.rmtree that isn't suspectible to symlink attacksHynek Schlawack2012-06-231-18/+45
| | | | | | | | | | It is used automatically on platforms supporting the necessary os.openat() and os.unlinkat() functions. Main code by Martin von Löwis.
* | Issue #14626: Fix buildbot issues on FreeBSD (AMD64). (Fingers crossed.)Larry Hastings2012-06-231-1/+1
| |
* | Issue #14626: Large refactoring of functions / parameters in the os module.Larry Hastings2012-06-221-6/+6
| | | | | | | | | | | | | | | | | | Many functions now support "dir_fd" and "follow_symlinks" parameters; some also support accepting an open file descriptor in place of of a path string. Added os.support_* collections as LBYL helpers. Removed many functions only previously seen in 3.3 alpha releases (often starting with "f" or "l", or ending with "at"). Originally suggested by Serhiy Storchaka; implemented by Larry Hastings.
* | Issue #444582: shutil.which() respects relative paths.Antoine Pitrou2012-06-221-0/+10
| |
* | Fix #444582. Add shutil.which function for finding programs on the system path.Brian Curtin2012-06-221-1/+44
| |
* | Fix #14772: Return the destination from some shutil functions.Brian Curtin2012-06-181-0/+41
| |
* | Try to fix test_shutil failure under Fedora - patch by Hynek.Antoine Pitrou2012-05-121-1/+1
| |
* | Issue #14082: shutil.copy2() now copies extended attributes, if possible.Antoine Pitrou2012-05-121-0/+74
| | | | | | | | Patch by Hynek Schlawack.
* | Issue #14662: Prevent shutil failures on OS X when destination does notNed Deily2012-05-111-0/+29
| | | | | | | | support chflag operations. (Patch by Hynek Schlawack)
* | Relax tests to fix buildbot failureAntoine Pitrou2012-02-081-2/+2
| |
* | Issue #13609: Add two functions to query the terminal size:Antoine Pitrou2012-02-081-1/+47
| | | | | | | | | | os.get_terminal_size (low level) and shutil.get_terminal_size (high level). Patch by Zbigniew Jędrzejewski-Szmek.
* | Issue #9993: When the source and destination are on different filesystems,Antoine Pitrou2012-01-061-0/+43
| | | | | | | | | | | | and the source is a symlink, shutil.move() now recreates a symlink on the destination instead of copying the file contents. Patch by Jonathan Niehof and Hynek Schlawack.
* | Mock the rename failure a bit betterAntoine Pitrou2012-01-021-1/+2
| |
* | Issue #12715: Add an optional symlinks argument to shutil functions ↵Antoine Pitrou2011-12-291-0/+219
| | | | | | | | | | | | | | | | | | (copyfile, copymode, copystat, copy, copy2). When that parameter is true, symlinks aren't dereferenced and the operation instead acts on the symlink itself (or creates one, if relevant). Patch by Hynek Schlawack.
* | #12191: fix build failures, explicitly passing group argument when I want to ↵Sandro Tosi2011-08-221-2/+2
| | | | | | | | test it
* | #12191: add shutil.chown() to change user and/or group owner of a given path ↵Sandro Tosi2011-08-221-0/+59
| | | | | | | | also specifying their names.
* | Clean up test_shutil, to facilitate upcoming improvements (#12721).Éric Araujo2011-08-121-96/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tests now have two convenience functions to wrap os.path.join, open and read or write instead of four or six slightly different functions. The new functions accept a tuple of path segments but not a list anymore, as it makes no sense to use a list here; I have also removed the default value for the contents in write_file, as I find it better to have the contents at the call site. For simple open then read/write calls, I have left the usual idiom (with open + read/write), as it is short and readable enough. I’ve also changed some convoluted cleanup code to just use rmtree, and removed dubious LBYL os.path.exists checks. The tests still pass on my machine, and leave no file in $TMP. test_shutil is not as clean as it could be, but I’ll stop here. Initial patch provided by Hynek Schlawack, in preparation for a new feature with new tests in #12715.
* | merge from 3.2Senthil Kumaran2011-07-041-1/+1
|\ \ | |/
| * Fix closes issue issue12470 - check for utime for the skipUnless condition.Senthil Kumaran2011-07-041-1/+1
| |
* | Clean up NEWS entry and tests for shutil.disk_usage (#12442)Éric Araujo2011-07-021-5/+5
| |
* | Issue #12442: add shutil.disk_usage()Giampaolo Rodola'2011-07-011-0/+10
| |
* | Issue #12451: Add support.create_empty_file()Victor Stinner2011-06-301-3/+2
| | | | | | | | | | | | | | We don't need to create a temporary buffered binary or text file object just to create an empty file. Replace also os.fdopen(handle).close() by os.close(handle).
* | Refactor a few tests to use the new requires_zlib decorator.Ezio Melotti2011-05-191-12/+7
|/
* merge from 3.1Ronald Oussoren2011-05-061-0/+18
|\
| * Fix for issue 10684: Folders get deleted when trying to change case with ↵Ronald Oussoren2011-05-061-0/+18
| | | | | | | | shutil.move (case insensitive file systems only)
| * 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 ........
| * Merged revisions 80833 via svnmerge fromTarek Ziadé2010-05-051-1/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r80833 | tarek.ziade | 2010-05-06 00:27:31 +0200 (Thu, 06 May 2010) | 9 lines Merged revisions 80830 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r80830 | tarek.ziade | 2010-05-06 00:15:31 +0200 (Thu, 06 May 2010) | 1 line Fixed #4265: shutil.copyfile() was leaking file descriptors when disk fills ........ ................