Skip to content

Commit 8eeda02

Browse files
Move yet few old tests.
1 parent 93c409f commit 8eeda02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_ntpath.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,8 +933,6 @@ def test_abspath(self):
933933
tester('ntpath.abspath("C:/nul")', "\\\\.\\nul")
934934
tester('ntpath.abspath("C:\\nul")', "\\\\.\\nul")
935935
self.assertTrue(ntpath.isabs(ntpath.abspath("C:spam")))
936-
self.assertEqual(ntpath.abspath("C:\x00"), ntpath.join(ntpath.abspath("C:"), "\x00"))
937-
self.assertEqual(ntpath.abspath("\x00:spam"), "\x00:\\spam")
938936
tester('ntpath.abspath("//..")', "\\\\")
939937
tester('ntpath.abspath("//../")', "\\\\..\\")
940938
tester('ntpath.abspath("//../..")', "\\\\..\\")
@@ -970,6 +968,8 @@ def test_abspath(self):
970968

971969
def test_abspath_invalid_paths(self):
972970
abspath = ntpath.abspath
971+
self.assertEqual(abspath("C:\x00"), ntpath.join(abspath("C:"), "\x00"))
972+
self.assertEqual(abspath("\x00:spam"), "\x00:\\spam")
973973
self.assertEqual(abspath('c:\\fo\x00o'), 'c:\\fo\x00o')
974974
self.assertEqual(abspath(b'c:\\fo\x00o'), b'c:\\fo\x00o')
975975
self.assertEqual(abspath('c:\\fo\x00o\\..\\bar'), 'c:\\bar')

0 commit comments

Comments
 (0)