Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r55082:495fbfced5b8
Date: 2012-05-14 12:07 +0200
http://bitbucket.org/pypy/pypy/changeset/495fbfced5b8/
Log: explicitly save exception values
diff --git a/pypy/module/_continuation/test/test_stacklet.py
b/pypy/module/_continuation/test/test_stacklet.py
--- a/pypy/module/_continuation/test/test_stacklet.py
+++ b/pypy/module/_continuation/test/test_stacklet.py
@@ -553,12 +553,12 @@
res = "got keyerror"
try:
c1.switch(res)
- except IndexError as e:
- pass
+ except IndexError as exc:
+ e = exc
try:
c1.switch(e)
- except IndexError as e2:
- pass
+ except IndexError as exc:
+ e2 = exc
try:
c1.switch(e2)
except IndexError:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit