[Python-checkins] r69794 - in python/branches/py3k/Lib: os.py test/test_subprocess.py
benjamin.peterson
python-checkins at python.org
Fri Feb 20 04:19:25 CET 2009
Author: benjamin.peterson
Date: Fri Feb 20 04:19:25 2009
New Revision: 69794
Log:
fix None errno #5312
Modified:
python/branches/py3k/Lib/os.py
python/branches/py3k/Lib/test/test_subprocess.py
Modified: python/branches/py3k/Lib/os.py
==============================================================================
--- python/branches/py3k/Lib/os.py (original)
+++ python/branches/py3k/Lib/os.py Fri Feb 20 04:19:25 2009
@@ -372,8 +372,8 @@
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.
Modified: python/branches/py3k/Lib/test/test_subprocess.py
==============================================================================
--- python/branches/py3k/Lib/test/test_subprocess.py (original)
+++ python/branches/py3k/Lib/test/test_subprocess.py Fri Feb 20 04:19:25 2009
@@ -535,7 +535,7 @@
# Windows raises IOError
except (IOError, OSError) as err:
if err.errno != 2: # ignore "no such file"
- pass # XXX see #5312
+ raise
#
# POSIX tests
More information about the Python-checkins
mailing list