Georg Brandl
183a084da3
#1742 : don't raise exception on os.path.relpath("a", "a"), but return os.curdir.
...
Reported by Jesse Towner.
2008-01-06 14:27:15 +00:00
Raymond Hettinger
a74b67e15e
Better tests for posixpath.commonprefix
2007-05-11 17:59:59 +00:00
Collin Winter
75c7eb4fd8
Make test_relpath() pass on Windows.
2007-03-23 22:24:39 +00:00
Collin Winter
6f187743ff
Patch 1339796: add a relpath() function to os.path.
2007-03-16 22:16:08 +00:00
Tim Peters
ea5962f86e
Whitespace normalization.
2007-03-12 18:07:52 +00:00
Collin Winter
dbead56cb6
* Unlink test files before and after each test; hopefully this will cut down on recent buildbot failures in test_islink.
...
* Drop safe_remove() in favor of test_support.unlink().
* Fix the indentation of test_samefile so that it runs.
2007-03-10 02:23:40 +00:00
Martin v. Löwis
05c075d629
Bug #1115886 : os.path.splitext('.cshrc') gives now ('.cshrc', '').
2007-03-07 11:04:33 +00:00
Sjoerd Mullender
33a0a06d31
Fixed ntpath.expandvars to not replace references to non-existing
...
variables with nothing. Also added tests.
This fixes bug #494589 .
2007-01-16 16:42:38 +00:00
Tim Peters
5d36a55eaa
Whitespace normalization.
2005-06-03 22:40:27 +00:00
Georg Brandl
268e61cf74
Bug #1213894 : os.path.realpath didn't resolve symlinks that were the first
...
component of the path.
2005-06-03 14:28:50 +00:00
Johannes Gijsbers
ae882f7984
Patch #941486 : add os.path.lexists(). Also fix bug #940578 by using lexists in glob.glob.
2004-08-30 10:19:56 +00:00
Tim Peters
a45cacfc1c
Whitespace normalization.
2004-08-20 03:47:14 +00:00
Johannes Gijsbers
4ec40648a5
bug #990669 : os.path.realpath() will resolve symlinks before normalizing the
...
path, as normalizing the path may alter the meaning of the path if it contains
symlinks.
Also add tests for infinite symlink loops and parent symlinks that need to be
resolved.
2004-08-14 15:01:53 +00:00
Neal Norwitz
168e73d25e
Fix SF #763362 , test_posixpath failed
...
Don't check expanduser('~') if the home directory == the root directory
(ie, we are running as root).
2003-07-01 03:33:31 +00:00
Tim Peters
478c10554b
Whitespace normalization.
2003-06-29 05:46:54 +00:00
Walter Dörwald
a9da5ae07a
Use find() instead of looping over the string in expanduser().
...
From SF patch #757058 .
2003-06-19 10:21:14 +00:00
Brett Cannon
b47243ae45
Complete rewrite of tests by Walter Dorwald as unittest tests.
2003-06-16 21:54:50 +00:00
Martin v. Löwis
de3337913f
Patch #536661 : Improve performance of splitext. Add test_macpath.
2002-12-12 20:30:20 +00:00
Eric S. Raymond
2846b0ab41
String method conversion.
...
(This one was trivial -- no actual string. references in it!)
2001-02-09 12:00:47 +00:00
Fred Drake
004d5e6880
Make reindent.py happy (convert everything to 4-space indents!).
2000-10-23 17:22:08 +00:00
Skip Montanaro
533bc9ad42
updated to correct failing test cases
2000-08-23 16:51:56 +00:00
Skip Montanaro
e809b00f36
new test file for posixpath module
2000-07-12 00:20:08 +00:00