File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -388,7 +388,7 @@ def skip_if_buildbot(reason=None):
388388 reason = 'not suitable for buildbots'
389389 try :
390390 isbuildbot = getpass .getuser ().lower () == 'buildbot'
391- except (KeyError , EnvironmentError ) as err :
391+ except (KeyError , OSError ) as err :
392392 warnings .warn (f'getpass.getuser() failed { err } .' , RuntimeWarning )
393393 isbuildbot = False
394394 return unittest .skipIf (isbuildbot , reason )
Original file line number Diff line number Diff line change @@ -1407,7 +1407,7 @@ def open_fds():
14071407 t = threading .Thread (target = open_fds )
14081408 t .start ()
14091409 try :
1410- with self .assertRaises (EnvironmentError ):
1410+ with self .assertRaises (OSError ):
14111411 subprocess .Popen (NONEXISTING_CMD ,
14121412 stdin = subprocess .PIPE ,
14131413 stdout = subprocess .PIPE ,
You can’t perform that action at this time.
0 commit comments