mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
fix None errno #5312
This commit is contained in:
parent
2fc224f090
commit
4b068190aa
2 changed files with 3 additions and 3 deletions
|
|
@ -372,8 +372,8 @@ def _execvpe(file, args, env=None):
|
|||
saved_exc = e
|
||||
saved_tb = tb
|
||||
if saved_exc:
|
||||
raise error(saved_exc).with_traceback(saved_tb)
|
||||
raise error(last_exc).with_traceback(tb)
|
||||
raise saved_exc.with_traceback(saved_tb)
|
||||
raise last_exc.with_traceback(tb)
|
||||
|
||||
|
||||
# Change environ to automatically call putenv(), unsetenv if they exist.
|
||||
|
|
|
|||
|
|
@ -535,7 +535,7 @@ def test_leaking_fds_on_error(self):
|
|||
# Windows raises IOError
|
||||
except (IOError, OSError) as err:
|
||||
if err.errno != 2: # ignore "no such file"
|
||||
pass # XXX see #5312
|
||||
raise
|
||||
|
||||
#
|
||||
# POSIX tests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue