File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -989,10 +989,6 @@ def test_realpath_permission(self):
989
989
raise unittest .SkipTest ('failed to deny access to the test file' )
990
990
991
991
self .assertPathEqual (test_file , ntpath .realpath (test_file_short ))
992
- with self .assertRaises (OSError ):
993
- ntpath .realpath (test_file_short , strict = True )
994
- with self .assertRaises (OSError ):
995
- ntpath .realpath (test_file_short , strict = 'allow_missing' )
996
992
997
993
def test_expandvars (self ):
998
994
with os_helper .EnvironmentVarGuard () as env :
Original file line number Diff line number Diff line change @@ -3830,7 +3830,7 @@ def test_realpath_limit_attack(self):
3830
3830
with self .check_context (arc .open (), filter = 'fully_trusted' ,
3831
3831
check_flag = False ):
3832
3832
if sys .platform == 'win32' :
3833
- self .expect_exception (FileNotFoundError )
3833
+ self .expect_exception (( FileNotFoundError , FileExistsError ) )
3834
3834
elif self .raised_exception :
3835
3835
# Most likely, guess for number of components was wrong?
3836
3836
self .expect_exception (KeyError )
You can’t perform that action at this time.
0 commit comments