File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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\x00 o' ), 'c:\\ fo\x00 o' )
974974 self .assertEqual (abspath (b'c:\\ fo\x00 o' ), b'c:\\ fo\x00 o' )
975975 self .assertEqual (abspath ('c:\\ fo\x00 o\\ ..\\ bar' ), 'c:\\ bar' )
You can’t perform that action at this time.
0 commit comments