Antoine Pitrou
2b2852b1b4
Issue #22759 : Query methods on pathlib.Path() (exists(), is_dir(), etc.) now return False when the underlying stat call raises NotADirectoryError.
2014-10-30 23:14:03 +01:00
Victor Stinner
ec86469ca3
Issue #19811 , #22022 : test_pathlib uses support.rmtree() instead of
...
shutil.rmtree() to remove the temporary directory.
2014-07-21 19:19:05 +02:00
Antoine Pitrou
e50dafcd63
Issue #20639 : calling Path.with_suffix('') allows removing the suffix again.
...
Patch by July Tikhonov.
2014-07-06 21:37:15 -04:00
Antoine Pitrou
7084e736db
Issue #21714 : Disallow the construction of invalid paths using Path.with_name(). Original patch by Antony Lee.
2014-07-06 21:31:12 -04:00
Antoine Pitrou
cb5ec77d33
Issue #21127 : Path objects can now be instantiated from str subclass instances (such as numpy.str_).
...
Thanks to Antony Lee for the report and preliminary patch.
2014-04-23 00:34:15 +02:00
Gregory P. Smith
b599c61179
Fix the unittest to run properly when the working directory has
...
additional bits set (such as the setgid or sticky bits).
2014-01-20 01:10:33 -08:00
Serhiy Storchaka
8f8ec92de8
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
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.
2014-01-16 17:33:23 +02:00
Antoine Pitrou
1b02da95d2
Issue #20111 : pathlib.Path.with_suffix() now sanity checks the given suffix.
2014-01-03 00:07:17 +01:00
Antoine Pitrou
156b3610b8
Issue #19918 : Fix PurePath.relative_to() under Windows.
2013-12-28 19:49:04 +01:00
Antoine Pitrou
0048c98fef
Issue #19921 : When Path.mkdir() is called with parents=True, any missing parent is created with the default permissions, ignoring the mode argument (mimicking the POSIX "mkdir -p" command).
...
Patch by Serhiy.
2013-12-16 20:22:37 +01:00
Antoine Pitrou
c274fd22ed
Issue #19887 : Improve the Path.resolve() algorithm to support certain symlink chains.
...
Original patch by Serhiy.
2013-12-16 19:57:41 +01:00
Serhiy Storchaka
010ff584bc
Test same drive in different cases (issue #19908 ).
2013-12-06 17:25:51 +02:00
Serhiy Storchaka
a993902a28
Issue #19908 : pathlib now joins relative Windows paths correctly when a drive
...
is present. Original patch by Antoine Pitrou.
2013-12-06 17:14:12 +02:00
Antoine Pitrou
cc157516a9
Issue #19877 : fix regression in test_pathlib when Windows has symlink support available (i.e. in administrator mode).
...
Patch by Vajrasky Kok.
2013-12-03 17:13:13 +01:00
Antoine Pitrou
51af82cc39
Add a test for complex symlinks.
2013-12-03 11:01:08 +01:00
Antoine Pitrou
2cf4b0f159
Issue #19742 : fix a test_pathlib failure when a file owner or group isn't in the system database
2013-11-25 19:51:53 +01:00
Antoine Pitrou
2cf3917954
Issue #19715 : try the utime(..., None) approach again, now that it should be more precise under Windows
2013-11-23 15:25:59 +01:00
Antoine Pitrou
8b78493d4f
Issue #19716 : add a test that Path.touch() doesn't change a file's contents.
...
Patch by Kushal Das.
2013-11-23 14:52:39 +01:00
Antoine Pitrou
12820c0d5d
Revert utime(..., None) strategy (it has too poor resolution under Windows) and restore the previous test workaround
...
(issue #19715 )
2013-11-23 02:11:02 +01:00
Antoine Pitrou
c3055be5f3
Trying other strategy for #19715 : use utime(..., None)
2013-11-23 01:54:27 +01:00
Antoine Pitrou
bb6694de85
Try to fix issue #19715 (timestamp rounding inconsistencies under Windows?)
2013-11-23 01:32:53 +01:00
Antoine Pitrou
0f57564cac
Try to debug issue #19715
2013-11-22 23:20:08 +01:00
Antoine Pitrou
2dd38fb238
Issue #19718 : add one more globbing test under POSIX
2013-11-22 22:26:01 +01:00
Brett Cannon
fe77f4ebb5
Issue #19718 : Add a case-insensitive FS check to test.support to use
...
in test_pathlib.
Purposefully designed to work from a specified directory in case
multiple file systems are used on the system.
2013-11-22 16:14:10 -05:00
Antoine Pitrou
330ce596c2
Hopefully fix test_is_socket_true
2013-11-22 18:05:06 +01:00
Antoine Pitrou
29eac42f49
Fix test failure under systems with an incompatible locale
2013-11-22 17:57:03 +01:00
Antoine Pitrou
31119e4f10
Issue #19673 : Add pathlib to the stdlib as a provisional module (PEP 428).
2013-11-22 17:38:12 +01:00