summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_posixpath.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|\ \ | |/
| * #15180: Clarify posixpath.join() error message when mixing str & bytesHynek Schlawack2012-07-151-2/+9
| |
* | MERGE: Closes #14768: os.path.expanduser('~/a') doesn't works correctly when ↵Jesus Cea2012-05-101-0/+1
|\ \ | |/ | | | | HOME is '/'
| * Closes #14768: os.path.expanduser('~/a') doesn't works correctly when HOME ↵Jesus Cea2012-05-101-0/+1
| | | | | | | | is '/'
* | Issue #13374: The Windows bytes API has been deprecated in the os module. UseVictor Stinner2011-11-151-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 Foord2011-03-161-0/+63
|
* Fix #9333. The symlink function is always available now, raising OSErrorBrian Curtin2010-12-281-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 Curtin2010-12-021-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`.
* Issue #5117: Case normalization was needed on ntpath.relpath(). AndHirokazu Yamamoto2010-10-181-0/+18
| | | | | fixed root directory issue on posixpath.relpath(). (Ported working fixes from ntpath)
* Fix the breakage of Lib/tarfile.py on non-Windows platforms due toBrian Curtin2010-07-091-0/+1
| | | | | | | | | using WindowsError in a try/except. Only add WindowsError to the list of exceptions to catch when we are actually running on Windows. Additionally, add a call that was left out in test_posixpath. Thanks Amaury, Antoine, and Jason.
* Implement #1578269. Patch by Jason R. Coombs.Brian Curtin2010-07-081-175/+170
| | | | | | | | | | | | | | | | Added Windows support for os.symlink when run on Windows 6.0 or greater, aka Vista. Previous Windows versions will raise NotImplementedError when trying to symlink. Includes numerous test updates and additions to test_os, including a symlink_support module because of the fact that privilege escalation is required in order to run the tests to ensure that the user is able to create symlinks. By default, accounts do not have the required privilege, so the escalation code will have to be exposed later (or documented on how to do so). I'll be following up with that work next. Note that the tests use ctypes, which was agreed on during the PyCon language summit.
* Merged revisions ↵Georg Brandl2010-03-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 78018,78035-78040,78042-78043,78046,78048-78052,78054,78059,78075-78080 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78018 | georg.brandl | 2010-02-06 11:08:21 +0100 (Sa, 06 Feb 2010) | 1 line #7864: make deprecation notices a bit clearer. ........ r78035 | georg.brandl | 2010-02-06 23:44:17 +0100 (Sa, 06 Feb 2010) | 1 line Fix duplicate import. ........ r78036 | georg.brandl | 2010-02-06 23:49:47 +0100 (Sa, 06 Feb 2010) | 1 line Remove unused import. ........ r78037 | georg.brandl | 2010-02-06 23:59:15 +0100 (Sa, 06 Feb 2010) | 1 line No need to assign the results of expressions used only for side effects. ........ r78038 | georg.brandl | 2010-02-07 00:02:29 +0100 (So, 07 Feb 2010) | 1 line Add a missing import. ........ r78039 | georg.brandl | 2010-02-07 00:06:24 +0100 (So, 07 Feb 2010) | 1 line Add missing imports. ........ r78040 | georg.brandl | 2010-02-07 00:08:00 +0100 (So, 07 Feb 2010) | 1 line Fix a few UnboundLocalErrors in test_long. ........ r78042 | georg.brandl | 2010-02-07 00:12:12 +0100 (So, 07 Feb 2010) | 1 line Add missing import. ........ r78043 | georg.brandl | 2010-02-07 00:12:19 +0100 (So, 07 Feb 2010) | 1 line Remove duplicate test method. ........ r78046 | georg.brandl | 2010-02-07 00:18:00 +0100 (So, 07 Feb 2010) | 1 line Fix various missing import/unbound name errors. ........ r78048 | georg.brandl | 2010-02-07 00:23:45 +0100 (So, 07 Feb 2010) | 1 line We heard you like test failures so we put unbound locals in your test so that you can fail while you fail. ........ r78049 | georg.brandl | 2010-02-07 00:33:33 +0100 (So, 07 Feb 2010) | 1 line Fix import/access for some identifiers. _TestSharedCTypes does not seem to be executed? ........ r78050 | georg.brandl | 2010-02-07 00:34:10 +0100 (So, 07 Feb 2010) | 1 line Fix more unbound locals in code paths that do not seem to be used. ........ r78051 | georg.brandl | 2010-02-07 00:53:52 +0100 (So, 07 Feb 2010) | 1 line Add missing import when running these tests standalone. ........ r78052 | georg.brandl | 2010-02-07 00:54:04 +0100 (So, 07 Feb 2010) | 1 line Add missing import when running these tests standalone. ........ r78054 | georg.brandl | 2010-02-07 00:58:25 +0100 (So, 07 Feb 2010) | 1 line Add missing import. ........ r78059 | georg.brandl | 2010-02-07 12:34:15 +0100 (So, 07 Feb 2010) | 1 line Use "regexp" consistently. ........ r78075 | georg.brandl | 2010-02-07 13:16:12 +0100 (So, 07 Feb 2010) | 1 line Fix another duplicated test method. ........ r78076 | georg.brandl | 2010-02-07 13:19:43 +0100 (So, 07 Feb 2010) | 1 line Fix wrong usage of "except X, Y:". ........ r78077 | georg.brandl | 2010-02-07 13:25:50 +0100 (So, 07 Feb 2010) | 1 line Fix two redefined test methods. ........ r78078 | georg.brandl | 2010-02-07 13:27:06 +0100 (So, 07 Feb 2010) | 1 line Fix a redefined test method. ........ r78079 | georg.brandl | 2010-02-07 13:34:26 +0100 (So, 07 Feb 2010) | 1 line Add a minimal test for fnmatchcase(). ........ r78080 | georg.brandl | 2010-02-07 13:55:12 +0100 (So, 07 Feb 2010) | 1 line Remove duplicate test method. ........
* Merge other tests from test_*path.py into test_genericpath.CommonTest, and ↵Florent Xicluna2010-03-081-72/+0
| | | | do some cleanup.
* Merged revisions 78734-78735 via svnmerge fromFlorent Xicluna2010-03-081-132/+9
| | | | | | | | | | | | | | 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 78249 via svnmerge fromEzio Melotti2010-02-201-6/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78249 | ezio.melotti | 2010-02-20 11:40:07 +0200 (Sat, 20 Feb 2010) | 1 line Remove e assertIs definitions and use correct assert* methods. ........
* Merged revisions 77727 via svnmerge fromEzio Melotti2010-01-241-6/+6
| | | | | | | | | | 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 ........
* use assert[Not]In where appropriateBenjamin Peterson2010-01-191-4/+4
| | | | A patch from Dave Malcolm.
* convert old fail* assertions to assert*Benjamin Peterson2009-06-301-14/+14
|
* Merged revisions 72167 via svnmerge fromWalter Dörwald2009-05-011-12/+7
| | | | | | | | | | | | | 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. ........
* test_support was renamed to support on py3k.Hirokazu Yamamoto2009-04-271-1/+1
|
* Merged revisions 71984 via svnmerge fromWalter Dörwald2009-04-261-4/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71984 | walter.doerwald | 2009-04-26 22:51:44 +0200 (So, 26 Apr 2009) | 2 lines Use test.test_support.EnvironmentVarGuard where tests change environment vars. ........