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 | -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) | pxinwr | 2020-12-15 | 1 | -0/+3 |
| | |||||
* | bpo-40275: Remove test helpers aliases in test.support (GH-21771) | Hai Shi | 2020-08-08 | 1 | -1/+1 |
| | |||||
* | bpo-40275: Use new test.support helper submodules in tests (GH-21764) | Hai Shi | 2020-08-07 | 1 | -45/+47 |
| | |||||
* | bpo-41069: Make TESTFN and the CWD for tests containing non-ascii ↵ | Serhiy Storchaka | 2020-06-25 | 1 | -1/+1 |
| | | | | characters. (GH-21035) | ||||
* | Remove unused imports in tests (GH-14518) | Victor Stinner | 2019-07-01 | 1 | -1/+1 |
| | |||||
* | bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919) | Victor Stinner | 2018-12-05 | 1 | -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 Storchaka | 2018-09-18 | 1 | -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 Storchaka | 2018-06-16 | 1 | -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 Storchaka | 2018-03-02 | 1 | -11/+3 |
| | |||||
* | Issue #26027, #27524: Add PEP 519/__fspath__() support to os and | Brett Cannon | 2016-08-26 | 1 | -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 Murray | 2016-08-19 | 1 | -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 Storchaka | 2016-05-03 | 1 | -4/+9 |
| | | | | | | "/". Based on patch by SilentGhost. | ||||
* | Use support.change_cwd() in tests. | Serhiy Storchaka | 2015-09-06 | 1 | -24/+13 |
|\ | |||||
| * | Use support.change_cwd() in tests. | Serhiy Storchaka | 2015-09-06 | 1 | -24/+13 |
| | | |||||
* | | Issue #10395: Added os.path.commonpath(). Implemented in posixpath and ntpath. | Serhiy Storchaka | 2015-03-31 | 1 | -0/+54 |
| | | | | | | | | Based on patch by Rafik Draoui. | ||||
* | | Issue #21883: os.path.join() and os.path.relpath() now raise a TypeError with | Serhiy Storchaka | 2014-10-04 | 1 | -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 Storchaka | 2014-08-24 | 1 | -13/+13 |
|\ \ | |/ | |||||
| * | Issue #22034: Got rid of misleading error message for bytearray arguments in | Serhiy Storchaka | 2014-08-24 | 1 | -12/+8 |
|/ | | | | posixpath.join(). | ||||
* | #17809: merge with 3.3. | Ezio Melotti | 2013-05-09 | 1 | -1/+2 |
|\ | |||||
| * | #17809: fix a test failure in test_expanduser when $HOME has a trailing /. ↵ | Ezio Melotti | 2013-05-09 | 1 | -1/+2 |
| | | | | | | | | Patch by Kubilay Kocak. | ||||
* | | #17315: merge with 3.3. | Ezio Melotti | 2013-03-01 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | #17315: merge with 3.2. | Ezio Melotti | 2013-03-01 | 1 | -0/+1 |
| |\ | |||||
| | * | #17315: unlink a file that test_posixpath was leaving around. | Ezio Melotti | 2013-03-01 | 1 | -0/+1 |
| | | | |||||
* | | | Disable posixpath.realpath() tests on Windows (fix for issue #6975). | Serhiy Storchaka | 2013-02-18 | 1 | -0/+2 |
|\ \ \ | |/ / | |||||
| * | | Disable posixpath.realpath() tests on Windows (fix for issue #6975). | Serhiy Storchaka | 2013-02-18 | 1 | -0/+2 |
| |\ \ | | |/ | |||||
| | * | Disable posixpath.realpath() tests on Windows (fix for issue #6975). | Serhiy Storchaka | 2013-02-18 | 1 | -0/+2 |
| | | | |||||
* | | | Fix posixpath.realpath() for multiple pardirs (fixes issue #6975). | Serhiy Storchaka | 2013-02-18 | 1 | -0/+18 |
|\ \ \ | |/ / | |||||
| * | | Fix posixpath.realpath() for multiple pardirs (fixes issue #6975). | Serhiy Storchaka | 2013-02-18 | 1 | -0/+18 |
| |\ \ | | |/ | |||||
| | * | Fix posixpath.realpath() for multiple pardirs (fixes issue #6975). | Serhiy Storchaka | 2013-02-18 | 1 | -0/+18 |
| | | | |||||
* | | | Issue #6975: os.path.realpath() now correctly resolves multiple nested ↵ | Serhiy Storchaka | 2013-02-10 | 1 | -0/+55 |
|\ \ \ | |/ / | | | | | | | symlinks on POSIX platforms. | ||||
| * | | Issue #6975: os.path.realpath() now correctly resolves multiple nested ↵ | Serhiy Storchaka | 2013-02-10 | 1 | -0/+55 |
| |\ \ | | |/ | | | | | | | symlinks on POSIX platforms. | ||||
| | * | Issue #6975: os.path.realpath() now correctly resolves multiple nested ↵ | Serhiy Storchaka | 2013-02-10 | 1 | -0/+55 |
| | | | | | | | | | | | | symlinks on POSIX platforms. | ||||
* | | | #16852: merge with 3.3. | Ezio Melotti | 2013-01-10 | 1 | -6/+2 |
|\ \ \ | |/ / | |||||
| * | | #16852: test_genericpath, test_posixpath, test_ntpath, and test_macpath now ↵ | Ezio Melotti | 2013-01-10 | 1 | -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 Curtin | 2012-12-26 | 1 | -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() test | Hynek Schlawack | 2012-07-17 | 1 | -1/+1 |
|\ \ | |/ | | | | | Used os.path.join before which has different semantics on Windows. | ||||
| * | Use posixpath.join() explicitely in posixpath.join() test | Hynek Schlawack | 2012-07-17 | 1 | -1/+1 |
| | | | | | | | | Used os.path.join before which has different semantics on Windows. | ||||
* | | #15377: Make posixpath.join() more strict when checking for str/bytes mix | Hynek Schlawack | 2012-07-17 | 1 | -10/+14 |
|\ \ | |/ | | | | | Based on a patch by Nick Coghlan. | ||||
| * | #15377: Make posixpath.join() more strict when checking for str/bytes mix | Hynek Schlawack | 2012-07-17 | 1 | -10/+14 |
| | | | | | | | | Based on a patch by Nick Coghlan. | ||||
* | | Fix context manager use in posixpath.join() tests | Hynek Schlawack | 2012-07-17 | 1 | -9/+12 |
|\ \ | |/ | | | | | The asserts were useless (and buggy). | ||||
| * | Fix context manager use in posixpath.join() tests | Hynek Schlawack | 2012-07-17 | 1 | -9/+12 |
| | | | | | | | | The asserts were useless (and buggy). | ||||
* | | #15180: Clarify posixpath.join() error message when mixing str & bytes | Hynek Schlawack | 2012-07-15 | 1 | -2/+9 |
|\ \ | |/ | |||||
| * | #15180: Clarify posixpath.join() error message when mixing str & bytes | Hynek Schlawack | 2012-07-15 | 1 | -2/+9 |
| | | |||||
* | | MERGE: Closes #14768: os.path.expanduser('~/a') doesn't works correctly when ↵ | Jesus Cea | 2012-05-10 | 1 | -0/+1 |
|\ \ | |/ | | | | | HOME is '/' | ||||
| * | Closes #14768: os.path.expanduser('~/a') doesn't works correctly when HOME ↵ | Jesus Cea | 2012-05-10 | 1 | -0/+1 |
| | | | | | | | | is '/' | ||||
* | | Issue #13374: The Windows bytes API has been deprecated in the os module. Use | Victor Stinner | 2011-11-15 | 1 | -5/+7 |
|/ | | | | | Unicode filenames instead of bytes filenames to not depend on the ANSI code page anymore and to support any filename. | ||||
* | Closes issue 11503. Improves test coverage of posixpath. | Michael Foord | 2011-03-16 | 1 | -0/+63 |
| | |||||
* | Fix #9333. The symlink function is always available now, raising OSError | Brian Curtin | 2010-12-28 | 1 | -1/+1 |
| | | | | when the user doesn't hold the symbolic link privilege rather than hiding it. | ||||
* | Fix #9333. Expose os.symlink on Windows only when usable. | Brian Curtin | 2010-12-02 | 1 | -8/+15 |
| | | | | | | | | | | | | | | | | In order to create symlinks on Windows, SeCreateSymbolicLinkPrivilege is an account privilege that is required to be held by the user. Not only must the privilege be enabled for the account, the activated privileges for the currently running application must be adjusted to enable the requested privilege. Rather than exposing an additional function to be called prior to the user's first os.symlink call, we handle the AdjustTokenPrivileges Windows API call internally and only expose os.symlink when the privilege escalation was successful. Due to the change of only exposing os.symlink when it's available, we can go back to the original test skipping methods of checking via `hasattr`. |