summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_shutil.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused import.Barry Warsaw2013-04-161-1/+0
|
* - Issue #17012: shutil.which() no longer fallbacks to the PATH environmentBarry Warsaw2013-04-161-0/+21
| | | | variable if empty path argument is specified. Patch by Serhiy Storchaka.
* #17076: Make copying of xattrs more permissive of missing FS supportHynek Schlawack2013-02-051-0/+11
| | | | Patch by Thomas Wouters.
* Fix pathext test for shutil.which() which wasSerhiy Storchaka2013-01-241-1/+1
| | | | broken after applying the patch for issue #16957.
* Issue #16957: shutil.which() no longer searches a bare file name in theSerhiy Storchaka2013-01-231-8/+29
| | | | | current directory on Unix and no longer searches a relative file path with a directory part in PATH directories. Patch by Thomas Kluyver.
* Fix shutil.which() test for issue #16993.Serhiy Storchaka2013-01-221-1/+1
|
* Issue #16993: shutil.which() now preserves the case of the path and extensionSerhiy Storchaka2013-01-211-3/+4
| | | | on Windows.
* #15872: Some more Windows related tuning to shutil.rmtree testsHynek Schlawack2012-12-101-7/+7
|\ | | | | | | | | | | Turns out, the snakebite bots behave also their peculiarities. I'm really not proud of this stream of commits. :(
| * #15872: Some more Windows related tuning to shutil.rmtree testsHynek Schlawack2012-12-101-8/+7
| | | | | | | | | | | | Turns out, the snakebite bots behave also their peculiarities. I'm really not proud of this stream of commits. :(
* | #15872: Be flexible with appending *.* in shutil.rmtree test caseHynek Schlawack2012-12-101-1/+1
|\ \ | |/ | | | | The Windows buildbots seem to be unable to agree whether they need them or not.
| * #15872: Be flexible with appending *.* in shutil.rmtree test caseHynek Schlawack2012-12-101-1/+1
| | | | | | | | The Windows buildbots seem to be unable to agree whether they need them or not.
* | #15872: More shutil test fixes for WindowsHynek Schlawack2012-12-101-2/+2
|\ \ | |/
| * #15872: More shutil test fixes for WindowsHynek Schlawack2012-12-101-2/+2
| |
* | #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: 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: 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.