Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-43757: Make pathlib use os.path.realpath() to resolve symlinks in a path ↵ | Barney Gale | 2021-04-28 | 1 | -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 Gale | 2021-04-07 | 1 | -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 Shi | 2020-08-07 | 1 | -6/+6 |
| | |||||
* | bpo-40275: Use new test.support helper submodules in tests (GH-21743) | Hai Shi | 2020-08-06 | 1 | -3/+3 |
| | |||||
* | bpo-40275: Use new test.support helper submodules in tests (GH-21448) | Hai Shi | 2020-08-03 | 1 | -38/+40 |
| | |||||
* | bpo-41069: Make TESTFN and the CWD for tests containing non-ascii ↵ | Serhiy Storchaka | 2020-06-25 | 1 | -1/+1 |
| | | | | characters. (GH-21035) | ||||
* | bpo-38453: Ensure correct short path is obtained for test (GH-17184) | Steve Dower | 2019-11-16 | 1 | -3/+21 |
| | |||||
* | bpo-38453: Ensure ntpath.realpath correctly resolves relative paths (GH-16967) | Steve Dower | 2019-11-15 | 1 | -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 Dower | 2019-10-03 | 1 | -7/+5 |
| | |||||
* | bpo-38081: Fixes ntpath.realpath('NUL') (GH-15899) | Steve Dower | 2019-09-11 | 1 | -0/+4 |
| | |||||
* | bpo-38087: Fix case sensitivity in test_pathlib and test_ntpath (GH-15850) | Steve Dower | 2019-09-10 | 1 | -91/+105 |
| | |||||
* | bpo-9949: Call normpath() in realpath() and avoid unnecessary prefixes ↵ | Steve Dower | 2019-08-21 | 1 | -2/+2 |
| | | | | (GH-15369) | ||||
* | bpo-9949: Enable symlink traversal for ntpath.realpath (GH-15287) | Steve Dower | 2019-08-21 | 1 | -3/+195 |
| | |||||
* | bpo-37393: Fix deprecation warnings in test_ntpath. (GH-14357) | Zackery Spytz | 2019-06-25 | 1 | -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 Sottile | 2019-03-12 | 1 | -10/+11 |
| | |||||
* | bpo-31047: Fix ntpath.abspath to trim ending separator (GH-10082) | Tim Graham | 2018-10-25 | 1 | -0/+2 |
| | | | Regression in b0bf51b32240369ccb736dc32ff82bb96f375402. | ||||
* | bpo-31047: Fix ntpath.abspath for invalid paths (GH-8544) | Franz Wöllert | 2018-07-29 | 1 | -0/+4 |
| | |||||
* | bpo-34195: Fix case-sensitive comparison in test_nt_helpers (GH-8448) | Tim Golden | 2018-07-25 | 1 | -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 Storchaka | 2018-03-02 | 1 | -12/+3 |
| | |||||
* | bpo-32556: nt._getfinalpathname, nt._getvolumepathname and nt._getdiskusage ↵ | Steve Dower | 2018-02-22 | 1 | -10/+36 |
| | | | | now correctly convert from bytes. (GH-5761) | ||||
* | Issue #29197: Removed deprecated function ntpath.splitunc(). | Serhiy Storchaka | 2017-01-13 | 1 | -24/+1 |
| | |||||
* | Issue #26027, #27524: Add PEP 519/__fspath__() support to os and | Brett Cannon | 2016-08-26 | 1 | -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 Storchaka | 2015-03-31 | 1 | -0/+69 |
| | | | | Based on patch by Rafik Draoui. | ||||
* | Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes. | Serhiy Storchaka | 2015-03-25 | 1 | -0/+1 |
| | |||||
* | Issue #7665: Fixed tests test_ntpath and test_urllib2 when ran in the | Serhiy Storchaka | 2015-01-26 | 1 | -3/+4 |
| | | | | directory containing a backslash. | ||||
* | Issue #21493: Added test for ntpath.expanduser(). Original patch by | Serhiy Storchaka | 2014-05-28 | 1 | -0/+35 |
| | | | | Claudiu Popa. | ||||
* | Issue #6815: os.path.expandvars() now supports non-ASCII environment | Serhiy Storchaka | 2014-02-13 | 1 | -3/+24 |
|\ | | | | | | | variables names and values. | ||||
| * | Issue #6815: os.path.expandvars() now supports non-ASCII environment | Serhiy Storchaka | 2014-02-13 | 1 | -3/+24 |
| | | | | | | | | variables names and values. | ||||
* | | Issue #19456: ntpath.join() now joins relative paths correctly when a drive | Serhiy Storchaka | 2014-01-27 | 1 | -33/+36 |
|\ \ | |/ | | | | | is present. | ||||
| * | Issue #19456: ntpath.join() now joins relative paths correctly when a drive | Serhiy Storchaka | 2014-01-27 | 1 | -32/+35 |
| | | | | | | | | is present. | ||||
* | | Issue #19912: Fixed numerous bugs in ntpath.splitunc(). | Serhiy Storchaka | 2013-12-16 | 1 | -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 Storchaka | 2013-12-16 | 1 | -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 'İ' character | Serhiy Storchaka | 2013-12-16 | 1 | -0/+3 |
|\ \ | |/ | | | | | (U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE). | ||||
| * | Issue #19911: ntpath.splitdrive() now correctly processes the 'İ' character | Serhiy Storchaka | 2013-12-16 | 1 | -0/+3 |
| | | | | | | | | (U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE). | ||||
* | | Issue 19572: More silently skipped tests explicitly skipped. | Zachary Ware | 2013-12-08 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue 19572: More silently skipped tests explicitly skipped. | Zachary Ware | 2013-12-08 | 1 | -1/+1 |
| | | |||||
* | | issue9035: Prevent Windows-specific tests from running on non-Windows platforms | Tim Golden | 2013-08-01 | 1 | -16/+16 |
| | | |||||
* | | Issue #9035: os.path.ismount now recognises volumes mounted below | Tim Golden | 2013-08-01 | 1 | -0/+34 |
|/ | | | | a drive root on Windows. Original patch by Atsuo Ishimoto. | ||||
* | #16852: test_genericpath, test_posixpath, test_ntpath, and test_macpath now ↵ | Ezio Melotti | 2013-01-10 | 1 | -5/+1 |
| | | | | work with unittest test discovery. Patch by Zachary Ware. | ||||
* | Issue #13374: The Windows bytes API has been deprecated in the os module. Use | Victor Stinner | 2011-11-15 | 1 | -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 Yamamoto | 2010-12-05 | 1 | -1/+1 |
| | |||||
* | Issue #5117: Case normalization was needed on ntpath.relpath(). And | Hirokazu Yamamoto | 2010-10-18 | 1 | -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 to | Brian Curtin | 2010-09-06 | 1 | -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 Curtin | 2010-09-06 | 1 | -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 Brandl | 2010-07-31 | 1 | -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 from | Georg Brandl | 2010-03-14 | 1 | -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 from | Florent Xicluna | 2010-03-08 | 1 | -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 from | Ezio Melotti | 2010-01-24 | 1 | -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 Hammond | 2009-05-06 | 1 | -8/+51 |
| | | | | By Larry Hastings, reviewed eric.smith and mark.hammond. | ||||
* | Merged revisions 72167 via svnmerge from | Walter Dörwald | 2009-05-01 | 1 | -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. ........ |