Commit 4b068190 authored by Benjamin Peterson's avatar Benjamin Peterson

fix None errno #5312

parent 2fc224f0
...@@ -372,8 +372,8 @@ def _execvpe(file, args, env=None): ...@@ -372,8 +372,8 @@ def _execvpe(file, args, env=None):
saved_exc = e saved_exc = e
saved_tb = tb saved_tb = tb
if saved_exc: if saved_exc:
raise error(saved_exc).with_traceback(saved_tb) raise saved_exc.with_traceback(saved_tb)
raise error(last_exc).with_traceback(tb) raise last_exc.with_traceback(tb)
# Change environ to automatically call putenv(), unsetenv if they exist. # Change environ to automatically call putenv(), unsetenv if they exist.
......
...@@ -535,7 +535,7 @@ class ProcessTestCase(unittest.TestCase): ...@@ -535,7 +535,7 @@ class ProcessTestCase(unittest.TestCase):
# Windows raises IOError # Windows raises IOError
except (IOError, OSError) as err: except (IOError, OSError) as err:
if err.errno != 2: # ignore "no such file" if err.errno != 2: # ignore "no such file"
pass # XXX see #5312 raise
# #
# POSIX tests # POSIX tests
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment