Skip to content
Prev Previous commit
Next Next commit
Stricter test
  • Loading branch information
nineteendo authored Jun 2, 2024
commit 6790a15c2e999db28674463138dec7f1a9607c7a
2 changes: 1 addition & 1 deletion Lib/test/test_ntpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ def test_abspath(self):
tester('ntpath.abspath("C:/nul")', "\\\\.\\nul")
tester('ntpath.abspath("C:\\nul")', "\\\\.\\nul")
self.assertTrue(ntpath.isabs(ntpath.abspath("C:spam")))
self.assertTrue(ntpath.isabs(ntpath.abspath("C:\x00")))
self.assertEqual(ntpath.abspath("C:\x00"), ntpath.join(ntpath.abspath("C:"), "spam"))
self.assertEqual(ntpath.abspath("\x00:spam"), "\x00:\\spam")
tester('ntpath.abspath("//..")', "\\\\")
tester('ntpath.abspath("//../")', "\\\\..\\")
Expand Down