Commit ca81bf76 authored by Benjamin Peterson's avatar Benjamin Peterson

fix this test to actually test something (closes #13606)

Thanks Mark Shannon.
parent 57c9c7b7
......@@ -70,9 +70,11 @@ class ModuleTests(unittest.TestCase):
m = ModuleType("foo")
m.destroyed = destroyed
s = """class A:
def __init__(self, l):
self.l = l
def __del__(self):
destroyed.append(1)
a = A()"""
self.l.append(1)
a = A(destroyed)"""
exec(s, m.__dict__)
del m
gc_collect()
......
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