summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pathlib.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31202: Preserve case of literal parts in Path.glob() on Windows. (GH-16860)Miss Skeleton (bot)2019-10-211-0/+4
| | | | | (cherry picked from commit 10ecbadb799ddf3393d1fc80119a3db14724d381) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-38087: Fix case sensitivity in test_pathlib and test_ntpath (GH-15850)Steve Dower2019-09-101-17/+20
|
* [3.7] bpo-36035: fix Path.rglob for broken links (GH-11988) (GH-13469)Miss Islington (bot)2019-05-211-2/+6
| | | | | | | | | | Links creating an infinite symlink loop would raise an exception. (cherry picked from commit d5c120f7eb6f2a9cdab282a5d588afed307a23df) Co-authored-by: Jörg Stucke <joerg.stucke@fkie.fraunhofer.de> https://bugs.python.org/issue36035
* bpo-34977: Add Windows App Store package (GH-11027)Steve Dower2018-12-111-1/+1
| | | Also adds the PC/layout script for generating layouts on Windows.
* Revert "[3.7] bpo-34977: Add Windows App Store package (GH-10245)" (GH-11021)Victor Stinner2018-12-071-1/+1
| | | This reverts commit 253209149389e6793a052034e1f2d97691086f18.
* [3.7] bpo-34977: Add Windows App Store package (GH-10245)Steve Dower2018-12-071-1/+1
|
* bpo-33635: Handling Bad file descriptor in Path.is_file and related. (GH-8542)Miss Islington (bot)2018-08-271-0/+24
| | | | | (cherry picked from commit 216b745eafa7cd4a683a8405dcfbd7f5567f504c) Co-authored-by: Przemysław Spodymek <przemyslaw@spodymek.com>
* bpo-34333: Fix %-formatting in Path.with_suffix() (GH-8663)Miss Islington (bot)2018-08-111-0/+2
| | | | | (cherry picked from commit 423d05f6f59b24c91b9ef6b2e4ac130316764382) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
* bpo-33522: Enable CI builds on Visual Studio Team Services (GH-6865) (GH-6926)Miss Islington (bot)2018-05-171-1/+1
| | | | | (cherry picked from commit e5f41d2f1e0b8b8e61d5fa427c19bd1ea90fd9a3) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* bpo-32601: Let test_expanduser use the same user if no others found. (GH-5246)Miss Islington (bot)2018-05-141-0/+3
| | | | | | | This happens in the NixOS build sandbox, for example, where the only other user is nobody with home directory /. (cherry picked from commit 5c0d462689e1a69537eaeba6ab94e3ff3524fc31) Co-authored-by: Anders Kaseorg <andersk@mit.edu>
* bpo-32964: Reuse a testing implementation of the path protocol in tests. ↵Miss Islington (bot)2018-03-021-6/+3
| | | | | | | (GH-5930) (cherry picked from commit b21d155f57d284aecf9092a9bd24258293965c2f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* 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().