File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -369,14 +369,14 @@ def test_realpath_symlink_loops(self):
369369 ABSTFN + "1\\ ..\\ " + ntpath .basename (ABSTFN ) + "1" )
370370
371371 os .symlink (ntpath .basename (ABSTFN ) + "a\\ b" , ABSTFN + "a" )
372- self .assertPathEqual ( ntpath .realpath ( ABSTFN + "a" ) , ABSTFN + "a" )
372+ self .assertRaises ( OSError , ntpath .realpath , ABSTFN + "a" )
373373
374374 os .symlink ("..\\ " + ntpath .basename (ntpath .dirname (ABSTFN ))
375375 + "\\ " + ntpath .basename (ABSTFN ) + "c" , ABSTFN + "c" )
376- self .assertPathEqual ( ntpath .realpath ( ABSTFN + "c" ) , ABSTFN + "c" )
376+ self .assertRaises ( OSError , ntpath .realpath , ABSTFN + "c" )
377377
378378 # Test using relative path as well.
379- self .assertPathEqual ( ntpath .realpath ( ntpath .basename (ABSTFN )), ABSTFN )
379+ self .assertRaises ( OSError , ntpath .realpath , ntpath .basename (ABSTFN ))
380380
381381 @os_helper .skip_unless_symlink
382382 @unittest .skipUnless (HAVE_GETFINALPATHNAME , 'need _getfinalpathname' )
You can’t perform that action at this time.
0 commit comments