Commit 8ac72b9d authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

Add testcase for failing namespace switch throwing exception from a module.

Issue #290. This currently fails, to draw attention to the issue.
parent 9307ef46
var = 123
def throw():
raise ValueError
# Regression test for #290 - throwing exception in another module led to
# its namespace stick and namespace of current module not coming back.
import import1b
def func1():
return
def func2():
try:
import1b.throw()
except ValueError:
pass
func1()
func2()
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