What steps will reproduce the problem?
Add this to tests.py:
#test that the __main__ module doesn't get GC'd
t_render("""
MODULES["__main__"] = None
for n in range(0,50000):
x = [n]
print("OK")
""","OK")
What is the expected output? What do you see instead?
It should say "OK" instead it gives some sort of error message. For example:
Exception:
tp_step: invalid instruction 105'
This is because since the main reference to the __main__ module has been
removed, the module gets garbage collected while it is being used.
Original issue reported on code.google.com by philhas...@gmail.com on 5 Sep 2008 at 6:30
Original issue reported on code.google.com by
philhas...@gmail.com
on 5 Sep 2008 at 6:30