[pypy-commit] pypy default: issue #2005
youknowone
noreply at buildbot.pypy.org
Thu Mar 26 11:01:13 CET 2015
Author: Jeong YunWon <jeong at youknowone.org>
Branch:
Changeset: r76570:920fce8456cb
Date: 2015-03-25 04:10 +0900
http://bitbucket.org/pypy/pypy/changeset/920fce8456cb/
Log: issue #2005
After fix ``` $ ./pypy-c ../pypytest/bar.py $ ```
Before fix ``` $ pypy ../pypytest/bar.py RPython traceback: ... (See
#2005 for details) ```
CPython ``` $ python ../pypytest/bar.py $ ```
diff --git a/pypy/module/imp/importing.py b/pypy/module/imp/importing.py
--- a/pypy/module/imp/importing.py
+++ b/pypy/module/imp/importing.py
@@ -663,7 +663,10 @@
if find_info:
stream = find_info.stream
if stream:
- stream.close()
+ try:
+ stream.close()
+ except StreamErrors:
+ pass
if tentative:
return None
More information about the pypy-commit
mailing list