summaryrefslogtreecommitdiff
path: root/Lib/test/test_pathlib.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #29416: Prevent infinite loop in pathlib.Path.mkdirSteve Dower2017-02-041-11/+67
|\
| * Issue #28683: Fix the tests that bind() a unix socket and raise PermissionErrorXavier de Gaye2016-12-141-1/+2
| | | | | | | | on Android for a non-root user.
| * Issue #28759: Fix the tests that fail with PermissionError when run asXavier de Gaye2016-12-131-0/+2
| | | | | | | | a non-root user on Android where access rights are controled by SELinux MAC.
| * Issue #26856: Fix the tests assuming that the pwd module has getpwall() andXavier de Gaye2016-12-131-0/+2
| | | | | | | | assuming some invariants about uids that are not valid for Android.
| * Issue #19717: Makes Path.resolve() succeed on paths that do not exist (patch ↵Steve Dower2016-11-091-7/+47
| | | | | | | | by Vajrasky Kok)
| * Issue #27186: Add os.PathLike support to pathlib.Brett Cannon2016-06-101-0/+11
| | | | | | | | | | | | | | | | This adds support both to pathlib.PurePath's constructor as well as implementing __fspath__(). This removes the provisional status for pathlib. Initial patch by Dusty Phillips.
| * Back out pathlib.Path.path attr. (Merge 3.5->3.6)Guido van Rossum2016-05-191-27/+0
| |\
| * \ Issue #24950: Fixed expanduser tests when the users home directory in pwd is ↵Serhiy Storchaka2016-05-031-1/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | "/". Based on patch by SilentGhost.
| * \ \ Issue #26778: Fixed "a/an/and" typos in code comment, documentation and errorSerhiy Storchaka2016-04-171-4/+4
| |\ \ \ | | | | | | | | | | | | | | | messages.
| | * \ \ Merge 3.5Victor Stinner2016-03-111-4/+4
| | |\ \ \
| | | * \ \ Issue #20589: Invoking Path.owner() and Path.group() on Windows now raiseBerker Peksag2016-03-111-0/+9
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | NotImplementedError instead of ImportError.
| | | * \ \ \ Issue #23076: Path.glob() now raises a ValueError if it's called with anBerker Peksag2016-01-301-0/+5
| | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | invalid pattern. Patch by Thomas Nyberg.
| | | * \ \ \ \ Hopeful fix for test_rglob_common on Windows without symlinks. (Merge 3.5->3.6)Guido van Rossum2016-01-071-4/+4
| | | |\ \ \ \ \
| | | | * \ \ \ \ Add another try/except PermissionError to avoid depending on listdir order. ↵Guido van Rossum2016-01-071-4/+4
| | | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix issues #24120 and #26012. (Merge 3.5->3.6)
| | | | | * \ \ \ \ Issue #22570: Add 'path' attribute to pathlib.Path objects. (Merge 3.5->3.6)Guido van Rossum2016-01-061-4/+4
| | | | | |\ \ \ \ \
| | | | | | * \ \ \ \ Issue #26012: Don't traverse into symlinks for ** pattern in ↵Guido van Rossum2016-01-061-1/+18
| | | | | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pathlib.Path.[r]glob(). (Merge 3.5->3.6)
| | | | | | * \ \ \ \ \ Issue #24120: Ignore PermissionError in pathlib.Path.[r]glob(). Ulrich ↵Guido van Rossum2016-01-061-4/+4
| | | | | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Petri. (Merge 3.5->3.6)
| | | | | | | * | | | | | Remove duplicate method in test_pathlib. Initial patch by Navneet Suman.Ezio Melotti2015-12-281-4/+4
| | | | | | | | | | | | |
* | | | | | | | | | | | | Issue #29416: Prevent infinite loop in pathlib.Path.mkdirSteve Dower2017-02-041-0/+11
| |_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | |
* | | | | | | | | | | | Back out pathlib.Path.path attr. (Merge 3.4->3.5)Guido van Rossum2016-05-191-7/+227
|\ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | |
| * | | | | | | | | | | Issue #24950: Fixed expanduser tests when the users home directory in pwd is ↵Serhiy Storchaka2016-05-031-1/+1
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "/". Based on patch by SilentGhost.
| * | | | | | | | | | Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-171-1/+1
| |/ / / / / / / / /
| * | | | | | | | | Issue #20589: Fix test_pathlibVictor Stinner2016-03-111-10/+10
| | |_|_|_|_|_|_|/ | |/| | | | | | |
| * | | | | | | | Issue #20589: Invoking Path.owner() and Path.group() on Windows now raiseBerker Peksag2016-03-111-0/+9
| | |_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | NotImplementedError instead of ImportError.
| * | | | | | | Issue #23076: Path.glob() now raises a ValueError if it's called with anBerker Peksag2016-01-301-0/+5
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | invalid pattern. Patch by Thomas Nyberg.
| * | | | | | Hopeful fix for test_rglob_common on Windows without symlinks. (Merge 3.4->3.5)Guido van Rossum2016-01-071-5/+211
| |\ \ \ \ \ \ | | |/ / / / /
| | * | | | | Add another try/except PermissionError to avoid depending on listdir order. ↵Guido van Rossum2016-01-071-8/+8
| | |\ \ \ \ \ | | | |/ / / / | | |/| | | | | | | | | | | Fix issues #24120 and #26012. (Merge 3.4->3.5)
| | * | | | | Issue #22570: Add 'path' attribute to pathlib.Path objects. (Merge 3.4->3.5)Guido van Rossum2016-01-061-0/+27
| | |\ \ \ \ \ | | | |_|_|_|/ | | |/| | | |
| | * | | | | Issue #26012: Don't traverse into symlinks for ** pattern in ↵Guido van Rossum2016-01-061-1/+18
| | |\ \ \ \ \ | | | |_|_|/ / | | |/| | | | | | | | | | | pathlib.Path.[r]glob(). (Merge 3.4->3.5)
| | * | | | | Issue #24120: Ignore PermissionError in pathlib.Path.[r]glob(). Ulrich ↵Guido van Rossum2016-01-061-5/+211
| | |\ \ \ \ \ | | | | |_|_|/ | | | |/| | | | | | | | | | Petri. (Merge 3.4->3.5)
| | | * | | | 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.
| | | * | | | | | 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()
| | | * \ \ \ \ \ \ Merge pathlib fixesAntoine Pitrou2014-07-061-0/+14
| | | |\ \ \ \ \ \ \
| | | * | | | | | | | Issue #19775: Add a samefile() method to pathlib Path objects.Antoine Pitrou2014-05-131-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initial patch by Vajrasky Kok.
* | | | | | | | | | | Back out 7e9605697dfc, 2e3c31ab586a, 759b2cecc289.Guido van Rossum2016-05-191-27/+0
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These added a path attribute to pathlib.Path objects, and docs. Instead, we're going to use PEP 519. (Starting in the 3.4 branch and merging forward from there since that's what I did originally.)
* | | | | | | | | | Hopeful fix for test_rglob_common on Windows without symlinks.Guido van Rossum2016-01-071-2/+5
| |_|_|_|_|_|_|_|/ |/| | | | | | | |
* | | | | | | | | Add another try/except PermissionError to avoid depending on listdir order. ↵Guido van Rossum2016-01-071-8/+8
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Fix issues #24120 and #26012.
* | | | | | | | Issue #22570: Add 'path' attribute to pathlib.Path objects.Guido van Rossum2016-01-061-0/+27
| |_|_|_|_|_|/ |/| | | | | |
* | | | | | | Issue #26012: Don't traverse into symlinks for ** pattern in ↵Guido van Rossum2016-01-061-1/+18
|/ / / / / / | | | | | | | | | | | | | | | | | | pathlib.Path.[r]glob().
* | | | | | Issue #24120: Ignore PermissionError in pathlib.Path.[r]glob(). Ulrich Petri.Guido van Rossum2016-01-061-12/+20
| |_|_|_|/ |/| | | |
* | | | | 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 #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 #19811, #22022: test_pathlib uses support.rmtree() instead ofVictor Stinner2014-07-211-2/+2
| |/ |/| | | | | shutil.rmtree() to remove the temporary directory.
* | Issue #20639: calling Path.with_suffix('') allows removing the suffix again.Antoine Pitrou2014-07-061-0/+6
| | | | | | | | Patch by July Tikhonov.