summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pathlib.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33721: Make some os.path functions and pathlib.Path methods be tolerant ↵Serhiy Storchaka2018-09-181-1/+28
| | | | | | | | | | to invalid paths. (#7695) Such functions as os.path.exists(), os.path.lexists(), os.path.isdir(), os.path.isfile(), os.path.islink(), and os.path.ismount() now return False instead of raising ValueError or its subclasses UnicodeEncodeError and UnicodeDecodeError for paths that contain characters or bytes unrepresentative at the OS level.
* bpo-33635: Handling Bad file descriptor in Path.is_file and related. (GH-8542)Przemysław Spodymek2018-08-271-0/+24
|
* bpo-34333: Fix %-formatting in Path.with_suffix() (GH-8663)Berker Peksag2018-08-111-0/+2
|
* bpo-33522: Enable CI builds on Visual Studio Team Services (#6865)Steve Dower2018-05-161-1/+1
|
* bpo-32601: Let test_expanduser use the same user if no others found. (GH-5246)Anders Kaseorg2018-05-141-0/+3
| | | | | This happens in the NixOS build sandbox, for example, where the only other user is nobody with home directory /.
* bpo-32964: Reuse a testing implementation of the path protocol in tests. (#5930)Serhiy Storchaka2018-03-021-6/+3
|
* bpo-28759: Skip some tests on PermissionError raised by Android (GH-4350)xdegaye2017-11-121-3/+4
| | | | | | Access to mkfifo(), mknod() and hard link creation is controled by SELinux on Android. Also remove test.support.android_not_root.
* bpo-30897: Add is_mount() to pathlib.Path (#2669)Cooper Lees2017-08-011-0/+12
| | | | * Add in is_mount() call to pathlib.Path similiar to os.path.ismount(path) * Add tests for is_mount()
* bpo-30177: pathlib: include the full path in resolve(strict=False) (#1893)Antoine Pietri2017-06-071-9/+12
|
* bpo-30144: Import collections ABC from collections.abc rather than ↵Serhiy Storchaka2017-04-241-3/+3
| | | | collections. (#1263)
* bpo-29694: race condition in pathlib mkdir with flags parents=True (GH-1089)Armin Rigo2017-04-131-0/+30
|
* bpo-19791: Use functions from test support to check the symlink support. ↵Vajrasky Kok2017-03-281-35/+20
| | | | (GH-822)
* bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) (#805)Serhiy Storchaka2017-03-241-0/+5
| | | | when the OS gives priority to errors such as EACCES over EEXIST.
* Issue #29416: Prevent infinite loop in pathlib.Path.mkdirSteve Dower2017-02-041-0/+11
|\
| * Issue #29416: Prevent infinite loop in pathlib.Path.mkdirSteve Dower2017-02-041-0/+11
| |
* | 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
|\ \ | |/
| * Back out pathlib.Path.path attr. (Merge 3.4->3.5)Guido van Rossum2016-05-191-27/+0
| |\
| | * 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.)
* | | 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 #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-1/+1
|\ \ \ | |/ / | | | | | | messages.
| * | Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-171-1/+1
| | |
* | | Merge 3.5Victor Stinner2016-03-111-10/+10
|\ \ \ | |/ /
| * | 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 #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.
| * | 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-2/+5
|\ \ \ | |/ /
| * | Hopeful fix for test_rglob_common on Windows without symlinks. (Merge 3.4->3.5)Guido van Rossum2016-01-071-2/+5
| |\ \ | | |/
| | * 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. (Merge 3.5->3.6)
| * | 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)
| | * 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. (Merge 3.5->3.6)Guido van Rossum2016-01-061-0/+27
|\ \ \ | |/ /
| * | Issue #22570: Add 'path' attribute to pathlib.Path objects. (Merge 3.4->3.5)Guido van Rossum2016-01-061-0/+27
| |\ \ | | |/
| | * 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(). (Merge 3.5->3.6)
| * | 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 #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 ↵Guido van Rossum2016-01-061-12/+20
|\ \ \ | |/ / | | | | | | Petri. (Merge 3.5->3.6)
| * | Issue #24120: Ignore PermissionError in pathlib.Path.[r]glob(). Ulrich ↵Guido van Rossum2016-01-061-12/+20
| |\ \ | | |/ | | | | | | Petri. (Merge 3.4->3.5)
| | * Issue #24120: Ignore PermissionError in pathlib.Path.[r]glob(). Ulrich Petri.Guido van Rossum2016-01-061-12/+20
| | |
* | | Remove duplicate method in test_pathlib. Initial patch by Navneet Suman.Ezio Melotti2015-12-281-4/+4
|/ /
* | Issue #23146: Fix mishandling of absolute Windows paths with forward slashes ↵Antoine Pitrou2015-02-151-16/+20
|\ \ | |/ | | | | | | | | in pathlib. Detected and fixed by Serhiy.