commit | ca81bf76e582472e708f4a826e9f80edd7d7b423 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Thu Dec 15 15:57:15 2011 -0500 |
committer | Benjamin Peterson <benjamin@python.org> | Thu Dec 15 15:57:15 2011 -0500 |
tree | c32c81f37a827c19b8154f9136565a46bcaa1ba8 | |
parent | 57c9c7b755671b7d212ead8988c34d9cf0b11fb3 [diff] |
fix this test to actually test something (closes #13606) Thanks Mark Shannon.
diff --git a/Lib/test/test_module.py b/Lib/test/test_module.py index 7734fb0..5617789 100644 --- a/Lib/test/test_module.py +++ b/Lib/test/test_module.py
@@ -70,9 +70,11 @@ 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()