summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_shutil.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.6] bpo-32964: Reuse a testing implementation of the path protocol in ↵Serhiy Storchaka2018-03-031-1/+8
| | | | | | | tests. (GH-5930). (GH-5958) (cherry picked from commit b21d155f57d284aecf9092a9bd24258293965c2f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.6] bpo-28759: Skip some tests on PermissionError raised by Android ↵xdegaye2017-11-121-8/+13
| | | | | | (GH-4350) (#4380) (cherry picked from commit 92c2ca7633c881a56157f2fb8b2e1b8c7114e5fb)
* [3.6] Make test_shutil test_disk_usage not depend on the cwd fs (GH-2597) ↵Gregory P. Smith2017-07-231-1/+1
| | | | | | (#2820) Make test_shutil test_disk_usage not depend on the current working directory's filesystem. (cherry picked from commit 529746c90584069270cd122920270bd7be38bca3)
* Issue #14061: Misc fixes and cleanups in archiving code in shutil.Serhiy Storchaka2016-12-161-51/+44
|\ | | | | | | | | | | Imporoved the documentation and tests for make_archive() and unpack_archive(). Improved error handling when corresponding compress module is not available. Brake circular dependency between shutil and tarfile modules.
| * Issue #14061: Misc fixes and cleanups in archiving code in shutil.Serhiy Storchaka2016-12-161-51/+44
| | | | | | | | | | | | Imporoved the documentation and tests for make_archive() and unpack_archive(). Improved error handling when corresponding compress module is not available. Brake circular dependency between shutil and tarfile modules.
* | Issue #28759: Fix the tests that fail with PermissionError when run asXavier de Gaye2016-12-131-1/+5
| | | | | | | | a non-root user on Android where access rights are controled by SELinux MAC.
* | Issue #28662: Catch PermissionError in tests when spawning a non existent ↵Xavier de Gaye2016-11-141-1/+2
| | | | | | | | program
* | Issue #28488: shutil.make_archive() no longer adds entry "./" to ZIP archive.Serhiy Storchaka2016-10-231-0/+13
|\ \ | |/
| * Issue #28488: shutil.make_archive() no longer adds entry "./" to ZIP archive.Serhiy Storchaka2016-10-231-0/+13
| |
* | Fixes tests broken by issue #27781.Steve Dower2016-09-081-3/+1
| |
* | Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Raymond Hettinger2016-08-301-2/+2
|/
* Issue #27626: Spelling fixes in docs, comments and internal namesMartin Panter2016-07-281-1/+1
| | | | Based on patch by Ville Skyttä.
* Issue #26801: shutil.get_terminal_size() now handles the case of stdout isSerhiy Storchaka2016-04-241-0/+29
| | | | reopened on Windows. Added tests for fallbacks.
* Fix shutil.get_terminal_size() error handlingVictor Stinner2016-04-191-0/+2
| | | | | | | | Issue #26801: Fix error handling in shutil.get_terminal_size(), catch AttributeError instead of NameError. Patch written by Emanuel Barry. test_shutil: skip the functional test using "stty size" command if os.get_terminal_size() is missing.
* Issue #25624: ZipFile now always writes a ZIP_STORED header for directorySerhiy Storchaka2015-11-221-0/+23
|\ | | | | | | entries. Patch by Dingyuan Wang.
| * 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 searchingSerhiy Storchaka2015-11-211-9/+7
|\ \ | |/ | | | | and running external archivers.
| * Issue #25686: test_shutil no longer uses the distutils package for searchingSerhiy Storchaka2015-11-211-9/+7
| | | | | | | | and running external archivers.
* | Issue #25607: Restore old distutils logging threshold after running tests thatSerhiy Storchaka2015-11-121-1/+1
|\ \ | |/ | | | | parse command line arguments.
| * 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.
| * 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-6/+31
|\ \ | |/ | | | | | | for directories (including empty directories) in ZIP file. Added test for comparing shutil.make_archive() with the "zip" command.
| * Issue #24982: shutil.make_archive() with the "zip" format now adds entriesSerhiy Storchaka2015-09-081-6/+31
| | | | | | | | | | 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.
| * 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.
| * 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-89/+83
|\ \ | |/
| * Fix, refactor and extend tests for shutil.make_archive().Serhiy Storchaka2015-09-061-89/+83
| |
* | Use support.change_cwd() in tests.Serhiy Storchaka2015-09-061-37/+7
|\ \ | |/
| * Use support.change_cwd() in tests.Serhiy Storchaka2015-09-061-37/+7
| |
* | Issue #21697: shutil.copytree() now correctly handles symbolic links that ↵Berker Peksag2015-07-251-0/+20
|\ \ | |/ | | | | | | | | point to directories. Patch by Eduardo Seabra and Thomas Kluyver.
| * Issue #21697: shutil.copytree() now correctly handles symbolic links that ↵Berker Peksag2015-07-251-0/+20
| | | | | | | | | | | | point to directories. Patch by Eduardo Seabra and Thomas Kluyver.
* | Issue #21775: shutil.copytree(): fix crash when copying to VFATBerker Peksag2014-12-101-0/+15
|\ \ | |/ | | | | | | | | | | | | | | An exception handler assumed that that OSError objects always have a 'winerror' attribute. That is not the case, so the exception handler itself raised AttributeError when run on Linux (and, presumably, any other non-Windows OS). Patch by Greg Ward.
| * Issue #21775: shutil.copytree(): fix crash when copying to VFATBerker Peksag2014-12-101-0/+15
| | | | | | | | | | | | | | | | | | An exception handler assumed that that OSError objects always have a 'winerror' attribute. That is not the case, so the exception handler itself raised AttributeError when run on Linux (and, presumably, any other non-Windows OS). Patch by Greg Ward.
* | Issue #21280: Fixed a bug in shutil.make_archive() when create an archive ofSerhiy Storchaka2014-11-271-0/+15
|\ \ | |/ | | | | current directory in current directory.
| * Issue #21280: Fixed a bug in shutil.make_archive() when create an archive ofSerhiy Storchaka2014-11-271-0/+15
| | | | | | | | current directory in current directory.
* | Issue #22665: Add missing get_terminal_size and SameFileError to shutil.__all__.Berker Peksag2014-11-011-0/+18
|\ \ | |/
| * Issue #22665: Add missing get_terminal_size and SameFileError to shutil.__all__.Berker Peksag2014-11-011-0/+18
| |
* | Issue #20056: Fixed deprecation warning about bytes path in test_shutil onSerhiy Storchaka2014-08-071-1/+4
|\ \ | |/ | | | | Windows. Path by Vajrasky Kok.
| * Issue #20056: Fixed deprecation warning about bytes path in test_shutil onSerhiy Storchaka2014-08-071-1/+4
| | | | | | | | Windows. Path by Vajrasky Kok.
* | Issue #5411: Added support for the "xztar" format in the shutil module.Serhiy Storchaka2014-08-061-0/+8
| |
* | #19840: Add copy_function to shutil.move.R David Murray2014-06-111-0/+18
|/ | | | Patch by Claudiu Popa.
* 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 #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.
* | sort os.listxattr results before comparing it to avoid depending on the ↵Gregory P. Smith2014-01-171-1/+1
|\ \ | |/ | | | | ordering of the directory information in the underlying filesystem.
| * sort os.listxattr results before comparing it to avoid depending on theGregory P. Smith2014-01-171-1/+1
| | | | | | | | ordering of the directory information in the underlying filesystem.
* | Issue #20055: Fix test_shutil under Windows with symlink privileges held.Antoine Pitrou2014-01-011-13/+19
|\ \ | |/ | | | | Patch by Vajrasky Kok.
| * Issue #20055: Fix test_shutil under Windows with symlink privileges held.Antoine Pitrou2014-01-011-13/+19
| | | | | | | | Patch by Vajrasky Kok.