summaryrefslogtreecommitdiffstatshomepage
path: root/tests/misc/sys_exc_info.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/sys_exc_info.py')
-rw-r--r--tests/misc/sys_exc_info.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/misc/sys_exc_info.py b/tests/misc/sys_exc_info.py
index 1aad6f1898..de5b825624 100644
--- a/tests/misc/sys_exc_info.py
+++ b/tests/misc/sys_exc_info.py
@@ -14,9 +14,8 @@ except:
print(sys.exc_info()[0:2])
f()
-# MicroPython currently doesn't reset sys.exc_info() value
-# on exit from "except" block.
-#f()
+# Outside except block, sys.exc_info() should be back to None's
+f()
-# Recursive except blocks are not handled either - just don't
-# use exc_info() at all!
+# Recursive except blocks are not handled - just don't
+# use exc_info() at all, use explicit variables in "except".