summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ntpath.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-43757: Make pathlib use os.path.realpath() to resolve symlinks in a path ↵Barney Gale2021-04-281-2/+58
| | | | | (GH-25264) Also adds a new "strict" argument to realpath() to avoid changing the default behaviour of pathlib while sharing the implementation.
* bpo-39899: os.path.expanduser(): don't guess other Windows users' home ↵Barney Gale2021-04-071-15/+28
| | | | | | | directories if the basename of the current user's home directory doesn't match their username. (GH-18841) This makes `ntpath.expanduser()` match `pathlib.Path.expanduser()` in this regard, and is more in line with `posixpath.expanduser()`'s cautious approach. Also remove the near-duplicate implementation of `expanduser()` in pathlib, and by doing so fix a bug where KeyError could be raised when expanding another user's home directory.
* bpo-40275: Use new test.support helper submodules in tests (GH-21764)Hai Shi2020-08-071-6/+6
|
* bpo-40275: Use new test.support helper submodules in tests (GH-21743)Hai Shi2020-08-061-3/+3
|
* bpo-40275: Use new test.support helper submodules in tests (GH-21448)Hai Shi2020-08-031-38/+40
|
* bpo-41069: Make TESTFN and the CWD for tests containing non-ascii ↵Serhiy Storchaka2020-06-251-1/+1
| | | | characters. (GH-21035)
* bpo-38453: Ensure correct short path is obtained for test (GH-17184)Steve Dower2019-11-161-3/+21
|
* bpo-38453: Ensure ntpath.realpath correctly resolves relative paths (GH-16967)Steve Dower2019-11-151-12/+40
| | | | | Ensure isabs() is always True for \\?\ prefixed paths Avoid unnecessary usage of readlink() to avoid resolving broken links incorrectly Ensure shutil tests run in test directory
* bpo-38355: Fix ntpath.realpath failing on sys.executable (GH-16551)Steve Dower2019-10-031-7/+5
|
* bpo-38081: Fixes ntpath.realpath('NUL') (GH-15899)Steve Dower2019-09-111-0/+4
|
* bpo-38087: Fix case sensitivity in test_pathlib and test_ntpath (GH-15850)Steve Dower2019-09-101-91/+105
|
* bpo-9949: Call normpath() in realpath() and avoid unnecessary prefixes ↵Steve Dower2019-08-211-2/+2
| | | | (GH-15369)
* bpo-9949: Enable symlink traversal for ntpath.realpath (GH-15287)Steve Dower2019-08-211-3/+195
|
* bpo-37393: Fix deprecation warnings in test_ntpath. (GH-14357)Zackery Spytz2019-06-251-2/+0
| | | | eval() was being called an extra time without a filter for deprecation warnings.
* bpo-36264: Don't honor POSIX HOME in os.path.expanduser on Windows (GH-12282)Anthony Sottile2019-03-121-10/+11
|
* bpo-31047: Fix ntpath.abspath to trim ending separator (GH-10082)Tim Graham2018-10-251-0/+2
| | | Regression in b0bf51b32240369ccb736dc32ff82bb96f375402.
* bpo-31047: Fix ntpath.abspath for invalid paths (GH-8544)Franz Wöllert2018-07-291-0/+4
|
* bpo-34195: Fix case-sensitive comparison in test_nt_helpers (GH-8448)Tim Golden2018-07-251-5/+11
| | | | | * Fix case-sensitive comparison test_nt_helpers assumed that two versions of a Windows path could be compared case-sensitively. This is not the case, and the difference can be triggered (apparently) by running the test on a path somewhere below a Junction.
* bpo-32964: Reuse a testing implementation of the path protocol in tests. (#5930)Serhiy Storchaka2018-03-021-12/+3
|
* bpo-32556: nt._getfinalpathname, nt._getvolumepathname and nt._getdiskusage ↵Steve Dower2018-02-221-10/+36
| | | | now correctly convert from bytes. (GH-5761)
* Issue #29197: Removed deprecated function ntpath.splitunc().Serhiy Storchaka2017-01-131-24/+1
|
* Issue #26027, #27524: Add PEP 519/__fspath__() support to os andBrett Cannon2016-08-261-0/+83
| | | | | | os.path. Thanks to Jelle Zijlstra for the initial patch against posixmodule.c.
* Issue #10395: Added os.path.commonpath(). Implemented in posixpath and ntpath.Serhiy Storchaka2015-03-311-0/+69
| | | | Based on patch by Rafik Draoui.
* Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.Serhiy Storchaka2015-03-251-0/+1
|
* Issue #7665: Fixed tests test_ntpath and test_urllib2 when ran in theSerhiy Storchaka2015-01-261-3/+4
| | | | directory containing a backslash.
* Issue #21493: Added test for ntpath.expanduser(). Original patch bySerhiy Storchaka2014-05-281-0/+35
| | | | Claudiu Popa.
* Issue #6815: os.path.expandvars() now supports non-ASCII environmentSerhiy Storchaka2014-02-131-3/+24
|\ | | | | | | variables names and values.
| * Issue #6815: os.path.expandvars() now supports non-ASCII environmentSerhiy Storchaka2014-02-131-3/+24
| | | | | | | | variables names and values.
* | Issue #19456: ntpath.join() now joins relative paths correctly when a driveSerhiy Storchaka2014-01-271-33/+36
|\ \ | |/ | | | | is present.
| * Issue #19456: ntpath.join() now joins relative paths correctly when a driveSerhiy Storchaka2014-01-271-32/+35
| | | | | | | | is present.
* | Issue #19912: Fixed numerous bugs in ntpath.splitunc().Serhiy Storchaka2013-12-161-0/+23
|\ \ | |/ | | | | | | | | | | | | * splitunc() no more return illegal result for paths with redundant slashes. * splitunc() now correctly processes the 'İ' character (U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE). * Deprecation warnings now emitted for every use of splitunc(). * Added tests for splitunc().
| * Issue #19912: Fixed numerous bugs in ntpath.splitunc().Serhiy Storchaka2013-12-161-0/+23
| | | | | | | | | | | | | | | | * splitunc() no more return illegal result for paths with redundant slashes. * splitunc() now correctly processes the 'İ' character (U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE). * Deprecation warnings now emitted for every use of splitunc(). * Added tests for splitunc().
* | Issue #19911: ntpath.splitdrive() now correctly processes the 'İ' characterSerhiy Storchaka2013-12-161-0/+3
|\ \ | |/ | | | | (U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
| * Issue #19911: ntpath.splitdrive() now correctly processes the 'İ' characterSerhiy Storchaka2013-12-161-0/+3
| | | | | | | | (U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
* | Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-1/+1
|\ \ | |/
| * Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-1/+1
| |
* | issue9035: Prevent Windows-specific tests from running on non-Windows platformsTim Golden2013-08-011-16/+16
| |
* | Issue #9035: os.path.ismount now recognises volumes mounted belowTim Golden2013-08-011-0/+34
|/ | | | a drive root on Windows. Original patch by Atsuo Ishimoto.
* #16852: test_genericpath, test_posixpath, test_ntpath, and test_macpath now ↵Ezio Melotti2013-01-101-5/+1
| | | | work with unittest test discovery. Patch by Zachary Ware.
* Issue #13374: The Windows bytes API has been deprecated in the os module. UseVictor Stinner2011-11-151-2/+5
| | | | | Unicode filenames instead of bytes filenames to not depend on the ANSI code page anymore and to support any filename.
* Should use posix_error here.Hirokazu Yamamoto2010-12-051-1/+1
|
* Issue #5117: Case normalization was needed on ntpath.relpath(). AndHirokazu Yamamoto2010-10-181-0/+1
| | | | | fixed root directory issue on posixpath.relpath(). (Ported working fixes from ntpath)
* Fix some errors that #7566 introduced on non-Windows platforms due toBrian Curtin2010-09-061-5/+7
| | | | | an ImportError. Rearranged the import, faked out the implementation when the import fails, and reorganized a test that depends on Win32 behavior.
* Implement #7566 - os.path.sameopenfile for Windows.Brian Curtin2010-09-061-0/+13
| | | | | | This uses the GetFileInformationByHandle function to return a tuple of values to identify a file, then ntpath.sameopenfile compares file tuples, which is exposed as os.path.sameopenfile.
* #7909: the prefixes \\.\ and \\?\ indicate special Windows paths, do not try ↵Georg Brandl2010-07-311-0/+3
| | | | to manipulate them. See http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx for details.
* Merged revisions 78093 via svnmerge fromGeorg Brandl2010-03-141-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78093 | georg.brandl | 2010-02-07 18:03:15 +0100 (So, 07 Feb 2010) | 1 line Remove unused imports in test modules. ........
* Merged revisions 78734-78735 via svnmerge fromFlorent Xicluna2010-03-081-3/+7
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78734 | florent.xicluna | 2010-03-06 19:07:18 +0100 (sam, 06 mar 2010) | 2 lines Create test_genericpath.CommonTest and reuse it to test other path modules. ........ r78735 | florent.xicluna | 2010-03-06 19:52:52 +0100 (sam, 06 mar 2010) | 2 lines Minor tweaking of previous r78734, and add a NEWS entry. ........
* Merged revisions 77727 via svnmerge fromEzio Melotti2010-01-241-0/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77727 | ezio.melotti | 2010-01-24 18:58:36 +0200 (Sun, 24 Jan 2010) | 1 line use assert[Not]IsInstance where appropriate ........
* Issue #5799: ntpath (ie, os.path on Windows) fully supports UNC pathnames.Mark Hammond2009-05-061-8/+51
| | | | By Larry Hastings, reviewed eric.smith and mark.hammond.
* Merged revisions 72167 via svnmerge fromWalter Dörwald2009-05-011-9/+5
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72167 | walter.doerwald | 2009-05-01 19:35:37 +0200 (Fr, 01 Mai 2009) | 5 lines Make test.test_support.EnvironmentVarGuard behave like a dictionary. All changes are mirrored to the underlying os.environ dict, but rolled back on exit from the with block. ........