Commit Graph

48 Commits

Author SHA1 Message Date
R David Murray
68854fdc1e #2466: fix test failure on windows.
Windows symlink support was introduced in python3, so we need to skip
those tests differently on python2.  Patch by Xiang Zhang.
2016-08-24 08:59:47 -04:00
R David Murray
8578316697 # 2466: ismount now recognizes mount points user can't access.
Patch by Robin Roth, backport by Xiang Zhang.
2016-08-23 12:30:28 -04:00
Serhiy Storchaka
7dc8e1e95e Backported test for posixpath.expanduser(). 2016-05-03 22:15:29 +03:00
Serhiy Storchaka
7c7b4b5d86 Backport support.change_cwd() and use it in tests. 2015-09-06 14:16:18 +03:00
Serhiy Storchaka
3be0d0e1f4 Issue #21840: Fixed a typo. 2015-02-13 12:47:08 +02:00
Serhiy Storchaka
2bd8b22b6d Issue #21840: Fixed expanding unicode variables of form $var in
posixpath.expandvars().  Fixed all os.path implementations on
unicode-disabled builds.
2015-02-13 12:02:05 +02:00
Ezio Melotti
c86e866b98 #17315: unlink a file that test_posixpath was leaving around. 2013-03-01 20:56:13 +02:00
Serhiy Storchaka
c8e75ba2c5 Disable posixpath.realpath() tests on Windows (fix for issue #6975). 2013-02-18 13:32:06 +02:00
Serhiy Storchaka
142d2bc3f1 Fix posixpath.realpath() for multiple pardirs (fixes issue #6975). 2013-02-18 12:20:44 +02:00
Serhiy Storchaka
0dd3d309ab Issue #6975: os.path.realpath() now correctly resolves multiple nested symlinks on POSIX platforms. 2013-02-10 12:21:49 +02:00
Benjamin Peterson
71966058a8 fix spelling 2012-11-30 16:13:14 -05:00
Benjamin Peterson
8a1a17b309 Remove redundant check for symlink. (closes #6036)
Patch by Bruno Dupuis.
2012-11-30 16:12:15 -05:00
Jesus Cea
f2011e3e49 Closes #14768: os.path.expanduser('~/a') doesn't works correctly when HOME is '/' 2012-05-10 05:01:11 +02:00
Hirokazu Yamamoto
50f7d7e213 Issue #5117: Fixed root directory related issue on posixpath.relpath() and
ntpath.relpath().
2010-10-18 13:55:29 +00:00
Florent Xicluna
985478dbbb Minor tweaking of previous r78734, and add a NEWS entry. 2010-03-06 18:52:52 +00:00
Florent Xicluna
dc1531c5c4 Create test_genericpath.CommonTest and reuse it to test other path modules. 2010-03-06 18:07:18 +00:00
Ezio Melotti
9e9af21d45 skip tests with a non-ascii cwd when the file system encoding is ascii 2010-02-20 22:34:21 +00:00
Ezio Melotti
e3467d5c96 Remove e assertIs definitions and use correct assert* methods. 2010-02-20 09:40:07 +00:00
Ezio Melotti
4cc80ca921 #3426: os.path.abspath now returns unicode when its arg is unicode. 2010-02-20 08:09:39 +00:00
Georg Brandl
b86d3fa43c Remove duplicate test method. 2010-02-07 12:55:12 +00:00
Ezio Melotti
b0f5adc3f4 use assert[Not]IsInstance where appropriate 2010-01-24 16:58:36 +00:00
Ezio Melotti
b5689de044 #5827: make sure that normpath preserves unicode 2010-01-12 03:32:05 +00:00
Benjamin Peterson
5c8da86f3a convert usage of fail* to assert* 2009-06-30 22:57:08 +00:00
Walter Dörwald
6733bed57e 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.
2009-05-01 17:35:37 +00:00
Walter Dörwald
4b965f6ab1 Use test.test_support.EnvironmentVarGuard where tests change environment vars. 2009-04-26 20:51:44 +00:00