summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_posixpath.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-101000: Add os.path.splitroot() (#101002)Barney Gale2023-01-271-0/+29
| | | | Co-authored-by: Eryk Sun <eryksun@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-99547: Add isjunction methods for checking if a path is a junction (GH-99548)Charles Machalow2022-11-221-0/+3
|
* gh-96192: fix os.ismount() to use a path that is str or bytes (#96194)Christoph Anton Mitterer2022-11-141-0/+2
| | | | | Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name> Co-authored-by: Eryk Sun <eryksun@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-90473: Make chmod a dummy on WASI, skip chmod tests (GH-93534)Christian Heimes2022-06-061-2/+1
| | | WASI does not have the ``chmod(2)`` syscall yet.
* gh-90473: wasmtime does not support absolute symlinks (GH-93490)Christian Heimes2022-06-051-20/+10
|
* bpo-46208: Fix normalization of relative paths in ↵neonene2022-01-061-0/+17
| | | | _Py_normpath()/os.path.normpath (GH-30362)
* bpo-45506: Normalize _PyPathConfig.stdlib_dir when calculated. (#29040)Eric Snow2021-10-221-18/+44
| | | | | The recently added PyConfig.stdlib_dir was being set with ".." entries. When __file__ was added for from modules this caused a problem on out-of-tree builds. This PR fixes that by normalizing "stdlib_dir" when it is calculated in getpath.c. https://bugs.python.org/issue45506
* bpo-43757: Make pathlib use os.path.realpath() to resolve symlinks in a path ↵Barney Gale2021-04-281-1/+56
| | | | | (GH-25264) Also adds a new "strict" argument to realpath() to avoid changing the default behaviour of pathlib while sharing the implementation.
* bpo-31904: Skip os.path.expanduser() tests on VxWorks (GH-23776)pxinwr2020-12-151-0/+3
|
* bpo-40275: Remove test helpers aliases in test.support (GH-21771)Hai Shi2020-08-081-1/+1
|
* bpo-40275: Use new test.support helper submodules in tests (GH-21764)Hai Shi2020-08-071-45/+47
|
* bpo-41069: Make TESTFN and the CWD for tests containing non-ascii ↵Serhiy Storchaka2020-06-251-1/+1
| | | | characters. (GH-21035)
* Remove unused imports in tests (GH-14518)Victor Stinner2019-07-011-1/+1
|
* bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919)Victor Stinner2018-12-051-29/+49
| | | | | | | * posixpath.expanduser() now returns the input path unchanged if the HOME environment variable is not set and pwd.getpwuid() raises KeyError (the current user identifier doesn't exist in the password database). * Add test_no_home_directory() to test_site.
* bpo-33721: Make some os.path functions and pathlib.Path methods be tolerant ↵Serhiy Storchaka2018-09-181-0/+12
| | | | | | | | | | 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-33861: Minor improvements of tests for os.path. (GH-7715)Serhiy Storchaka2018-06-161-17/+10
| | | | | | | | * Test exists(), lexists(), isdir(), isfile(), islink(), ismount() with bytes paths. * Remove unneeded silencing DeprecationWarning for ismount() with bytes path. * Test common functions with unencodable and undecodable paths. * Minor clean up and refactoring.
* bpo-32964: Reuse a testing implementation of the path protocol in tests. (#5930)Serhiy Storchaka2018-03-021-11/+3
|
* Issue #26027, #27524: Add PEP 519/__fspath__() support to os andBrett Cannon2016-08-261-0/+80
| | | | | | os.path. Thanks to Jelle Zijlstra for the initial patch against posixmodule.c.
* #2466: ismount now recognizes mount points user can't access.R David Murray2016-08-191-2/+22
| | | | | Patch by Robin Roth, reviewed by Serhiy Storchaka, comment wording tweaked by me.
* Issue #24950: Fixed expanduser tests when the users home directory in pwd is ↵Serhiy Storchaka2016-05-031-4/+9
| | | | | | "/". Based on patch by SilentGhost.
* Use support.change_cwd() in tests.Serhiy Storchaka2015-09-061-24/+13
|\
| * Use support.change_cwd() in tests.Serhiy Storchaka2015-09-061-24/+13
| |
* | Issue #10395: Added os.path.commonpath(). Implemented in posixpath and ntpath.Serhiy Storchaka2015-03-311-0/+54
| | | | | | | | Based on patch by Rafik Draoui.
* | Issue #21883: os.path.join() and os.path.relpath() now raise a TypeError withSerhiy Storchaka2014-10-041-16/+0
| | | | | | | | more helpful error message for unsupported or mismatched types of arguments.
* | Issue #22034: Improve handling of wrong argument types in posixpath.join().Serhiy Storchaka2014-08-241-13/+13
|\ \ | |/
| * Issue #22034: Got rid of misleading error message for bytearray arguments inSerhiy Storchaka2014-08-241-12/+8
|/ | | | posixpath.join().
* #17809: merge with 3.3.Ezio Melotti2013-05-091-1/+2
|\
| * #17809: fix a test failure in test_expanduser when $HOME has a trailing /. ↵Ezio Melotti2013-05-091-1/+2
| | | | | | | | Patch by Kubilay Kocak.
* | #17315: merge with 3.3.Ezio Melotti2013-03-011-0/+1
|\ \ | |/
| * #17315: merge with 3.2.Ezio Melotti2013-03-011-0/+1
| |\
| | * #17315: unlink a file that test_posixpath was leaving around.Ezio Melotti2013-03-011-0/+1
| | |
* | | Disable posixpath.realpath() tests on Windows (fix for issue #6975).Serhiy Storchaka2013-02-181-0/+2
|\ \ \ | |/ /
| * | Disable posixpath.realpath() tests on Windows (fix for issue #6975).Serhiy Storchaka2013-02-181-0/+2
| |\ \ | | |/
| | * Disable posixpath.realpath() tests on Windows (fix for issue #6975).Serhiy Storchaka2013-02-181-0/+2
| | |
* | | Fix posixpath.realpath() for multiple pardirs (fixes issue #6975).Serhiy Storchaka2013-02-181-0/+18
|\ \ \ | |/ /
| * | Fix posixpath.realpath() for multiple pardirs (fixes issue #6975).Serhiy Storchaka2013-02-181-0/+18
| |\ \ | | |/
| | * Fix posixpath.realpath() for multiple pardirs (fixes issue #6975).Serhiy Storchaka2013-02-181-0/+18
| | |
* | | Issue #6975: os.path.realpath() now correctly resolves multiple nested ↵Serhiy Storchaka2013-02-101-0/+55
|\ \ \ | |/ / | | | | | | symlinks on POSIX platforms.
| * | Issue #6975: os.path.realpath() now correctly resolves multiple nested ↵Serhiy Storchaka2013-02-101-0/+55
| |\ \ | | |/ | | | | | | symlinks on POSIX platforms.
| | * Issue #6975: os.path.realpath() now correctly resolves multiple nested ↵Serhiy Storchaka2013-02-101-0/+55
| | | | | | | | | | | | symlinks on POSIX platforms.
* | | #16852: merge with 3.3.Ezio Melotti2013-01-101-6/+2
|\ \ \ | |/ /
| * | #16852: test_genericpath, test_posixpath, test_ntpath, and test_macpath now ↵Ezio Melotti2013-01-101-6/+2
| | | | | | | | | | | | work with unittest test discovery. Patch by Zachary Ware.
* | | Fix #11939. Set st_dev attribute on Windows to simplify os.path.samefile.Brian Curtin2012-12-261-62/+0
|/ / | | | | | | | | | | By setting the st_dev attribute, we can then remove some Windows-specific code and move os.path.samefile/sameopenfile/samestat to Lib/genericpath.py so all platforms share the same implementation.
* | Use posixpath.join() explicitely in posixpath.join() testHynek Schlawack2012-07-171-1/+1
|\ \ | |/ | | | | Used os.path.join before which has different semantics on Windows.
| * Use posixpath.join() explicitely in posixpath.join() testHynek Schlawack2012-07-171-1/+1
| | | | | | | | Used os.path.join before which has different semantics on Windows.
* | #15377: Make posixpath.join() more strict when checking for str/bytes mixHynek Schlawack2012-07-171-10/+14
|\ \ | |/ | | | | Based on a patch by Nick Coghlan.
| * #15377: Make posixpath.join() more strict when checking for str/bytes mixHynek Schlawack2012-07-171-10/+14
| | | | | | | | Based on a patch by Nick Coghlan.
* | Fix context manager use in posixpath.join() testsHynek Schlawack2012-07-171-9/+12
|\ \ | |/ | | | | The asserts were useless (and buggy).
| * Fix context manager use in posixpath.join() testsHynek Schlawack2012-07-171-9/+12
| | | | | | | | The asserts were useless (and buggy).
* | #15180: Clarify posixpath.join() error message when mixing str & bytesHynek Schlawack2012-07-151-2/+9
|\ \ | |/