Commit a3cf886d authored by Stefan Behnel's avatar Stefan Behnel

minor test cleanup

parent 36f86e49
# mode: run
# tag: exceptions
import sys
IS_PY3 = sys.version_info[0] >= 3
__doc__ = u"""
>>> import sys
>>> if not IS_PY3: sys.exc_clear()
>>> def test_py(outer_exc):
......@@ -76,9 +82,6 @@ True
None
"""
import sys
IS_PY3 = sys.version_info[0] >= 3
def test_c(outer_exc):
try:
......@@ -96,6 +99,7 @@ def test_c(outer_exc):
print(sys.exc_info()[0] is AttributeError or sys.exc_info()[0])
print(sys.exc_info()[0] is outer_exc or sys.exc_info()[0])
def test_c2():
try:
raise Exception
......
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