summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ntpath.py
Commit message (Collapse)AuthorAgeFilesLines
* Only test ntpath.abspath() on Windows. This allows the rest of the module toFred Drake2002-01-151-2/+12
| | | | be tested regardless of the host platform.
* A couple more test cases to ensure join() doesn't add an "extra" backslashTim Peters2001-11-051-0/+2
| | | | in the presence of empty-string arguments.
* SF bug 478425: Change in os.path.join (ntpath.py)Tim Peters2001-11-051-0/+8
| | | | | | ntpath.join('a', '') was producing 'a' instead of 'a\\' as in 2.1. Impossible to guess what was ever *intended*, but since split('a\\') produces ('a', ''), I think it's best if join('a', '') gives 'a\\' back.
* SF bug #456621: normpath on Win32 not collapsing c:\\..Tim Peters2001-08-301-0/+24
| | | | | | I actually rewrote normpath quite a bit: it had no test cases, and as soon as I starting writing some I found several cases that didn't make sense.
* One more crack at join(): stop trying to pretend this isn't a mass ofTim Peters2001-07-271-0/+7
| | | | special cases. test_pkg works again on Windows.
* Change ntpath.join() so that join("d:/", "/whatever") returnsTim Peters2001-07-261-0/+1
| | | | | | | d:/whatever instead of /whatever. While I'm afraid changing isabs() to be *consistent* with this would break lots of code, it makes best sense for join() to do it this way. Thanks to Alex Martelli for pushing back on this one!
* Add some test cases for ntpath.join().Tim Peters2001-07-191-3/+19
|
* Cosmetic: break the long lines in test_ntpath.py, and get rid of itsTim Peters2001-07-191-7/+14
| | | | expected-output file.
* String method conversion.Eric S. Raymond2001-02-091-2/+1
|
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-13/+12
|
* added commonprefix test casesSkip Montanaro2000-08-231-0/+6
|
* Remove the test for abspath with an empty path - too hard to do in a ↵Mark Hammond2000-08-141-1/+0
| | | | cross-platform manner.
* Test for fix to bug #110673: os.abspatth() now always returns os.getcwd() on ↵Mark Hammond2000-08-141-0/+5
| | | | Windows, if an empty path is specified. It previously did not if an empty path was delegated to win32api.GetFullPathName())
* Fix the tests now that splitdrive() no longer treats UNC paths special.Guido van Rossum1999-04-061-4/+4
| | | | (Some tests converted to splitunc() tests.)
* New test for ntpath moduleGuido van Rossum1999-02-031-0/+41