Commit a3ed11bd authored by Benjamin Peterson's avatar Benjamin Peterson

don't rely on the order of module clearing

parent 2daf6ae2
......@@ -70,7 +70,7 @@ class ModuleTests(unittest.TestCase):
m = ModuleType("foo")
m.destroyed = destroyed
s = """class A:
def __del__(self):
def __del__(self, destroyed=destroyed):
destroyed.append(1)
a = A()"""
exec(s, m.__dict__)
......
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