summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pathlib.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #23146: Fix mishandling of absolute Windows paths with forward slashes ↵Antoine Pitrou2015-02-151-16/+20
|\ | | | | | | | | | | in pathlib. Detected and fixed by Serhiy.
| * Issue #23146: Fix mishandling of absolute Windows paths with forward slashes ↵Antoine Pitrou2015-02-151-16/+20
| | | | | | | | | | | | in pathlib. Detected and fixed by Serhiy.
* | Issue #19777: Provide a home() classmethod on Path objects.Antoine Pitrou2015-01-121-0/+11
| | | | | | | | Contributed by Victor Salgado and Mayank Tripathi.
* | Issue #19776: Fix test_pathlib.test_expanduser()Victor Stinner2015-01-101-1/+1
| | | | | | | | Skip users with an empty home directory.
* | Issue #19776: Add a expanduser() method on Path objects.Antoine Pitrou2014-12-301-0/+110
| | | | | | | | Patch by Serhiy.
* | Issue #22759: Query methods on pathlib.Path() (exists(), is_dir(), etc.) now ↵Antoine Pitrou2014-10-301-0/+10
|\ \ | |/ | | | | return False when the underlying stat call raises NotADirectoryError.
| * Issue #22759: Query methods on pathlib.Path() (exists(), is_dir(), etc.) now ↵Antoine Pitrou2014-10-301-0/+10
| | | | | | | | return False when the underlying stat call raises NotADirectoryError.
* | Closes #20218: Added convenience methods read_text/write_text and read_bytes/Georg Brandl2014-10-011-0/+17
| | | | | | | | | | | | write_bytes to pathlib.Path objects. Thanks to Christopher Welborn and Ram Rachum for original patches.
* | - Issue #21539: Add a *exists_ok* argument to `Pathlib.mkdir()` to mimicBarry Warsaw2014-08-051-5/+53
| | | | | | | | | | | | | | | | | | | | | | `mkdir -p` and `os.makedirs()` functionality. When true, ignore FileExistsErrors. Patch by Berker Peksag. (With minor cleanups, additional tests, doc tweaks, etc. by Barry) Also: * Remove some unused imports in test_pathlib.py reported by pyflakes.
* | Merge Python 3.4Victor Stinner2014-07-211-2/+2
|\ \ | |/ | | | | | | | | | | | | * Issue #19811, #22022: test_pathlib uses support.rmtree() instead of shutil.rmtree() to remove the temporary directory. * Issue #19629: Fix support.rmtree(), use os.lstat() to check if the file is a directory, not os.path.isdir()
| * Issue #19811, #22022: test_pathlib uses support.rmtree() instead ofVictor Stinner2014-07-211-2/+2
| | | | | | | | shutil.rmtree() to remove the temporary directory.
* | Merge pathlib fixesAntoine Pitrou2014-07-071-0/+14
|\ \ | |/
| * Issue #20639: calling Path.with_suffix('') allows removing the suffix again.Antoine Pitrou2014-07-071-0/+6
| | | | | | | | Patch by July Tikhonov.
| * Issue #21714: Disallow the construction of invalid paths using ↵Antoine Pitrou2014-07-071-0/+8
| | | | | | | | Path.with_name(). Original patch by Antony Lee.
* | Issue #19775: Add a samefile() method to pathlib Path objects.Antoine Pitrou2014-05-131-0/+20
|/ | | | Initial patch by Vajrasky Kok.
* Issue #21127: Path objects can now be instantiated from str subclass ↵Antoine Pitrou2014-04-221-0/+30
| | | | | | instances (such as numpy.str_). Thanks to Antony Lee for the report and preliminary patch.
* Fix the unittest to run properly when the working directory hasGregory P. Smith2014-01-201-1/+1
| | | | additional bits set (such as the setgid or sticky bits).
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-0/+0
| | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang lines in the unittestgui and checkpip scripts.
* Issue #20111: pathlib.Path.with_suffix() now sanity checks the given suffix.Antoine Pitrou2014-01-021-0/+20
|
* Issue #19918: Fix PurePath.relative_to() under Windows.Antoine Pitrou2013-12-281-28/+57
|
* Issue #19921: When Path.mkdir() is called with parents=True, any missing ↵Antoine Pitrou2013-12-161-2/+11
| | | | | | parent is created with the default permissions, ignoring the mode argument (mimicking the POSIX "mkdir -p" command). Patch by Serhiy.
* Issue #19887: Improve the Path.resolve() algorithm to support certain ↵Antoine Pitrou2013-12-161-0/+53
| | | | | | symlink chains. Original patch by Serhiy.
* Test same drive in different cases (issue #19908).Serhiy Storchaka2013-12-061-2/+2
|
* Issue #19908: pathlib now joins relative Windows paths correctly when a driveSerhiy Storchaka2013-12-061-0/+42
| | | | is present. Original patch by Antoine Pitrou.
* Issue #19877: fix regression in test_pathlib when Windows has symlink ↵Antoine Pitrou2013-12-031-2/+2
| | | | | | support available (i.e. in administrator mode). Patch by Vajrasky Kok.
* Add a test for complex symlinks.Antoine Pitrou2013-12-031-10/+21
|
* Issue #19742: fix a test_pathlib failure when a file owner or group isn't in ↵Antoine Pitrou2013-11-251-2/+10
| | | | the system database
* Issue #19715: try the utime(..., None) approach again, now that it should be ↵Antoine Pitrou2013-11-231-5/+2
| | | | more precise under Windows
* Issue #19716: add a test that Path.touch() doesn't change a file's contents.Antoine Pitrou2013-11-231-0/+7
| | | | Patch by Kushal Das.
* Revert utime(..., None) strategy (it has too poor resolution under Windows) ↵Antoine Pitrou2013-11-231-2/+5
| | | | | | and restore the previous test workaround (issue #19715)
* Trying other strategy for #19715: use utime(..., None)Antoine Pitrou2013-11-231-5/+2
|
* Try to fix issue #19715 (timestamp rounding inconsistencies under Windows?)Antoine Pitrou2013-11-231-3/+7
|
* Try to debug issue #19715Antoine Pitrou2013-11-221-2/+6
|
* Issue #19718: add one more globbing test under POSIXAntoine Pitrou2013-11-221-0/+2
|
* Issue #19718: Add a case-insensitive FS check to test.support to useBrett Cannon2013-11-221-2/+6
| | | | | | | in test_pathlib. Purposefully designed to work from a specified directory in case multiple file systems are used on the system.
* Hopefully fix test_is_socket_trueAntoine Pitrou2013-11-221-2/+6
|
* Fix test failure under systems with an incompatible localeAntoine Pitrou2013-11-221-1/+8
|
* Issue #19673: Add pathlib to the stdlib as a provisional module (PEP 428).Antoine Pitrou2013-11-221-0/+1639