commit | 518e5173fcb43f9d4c3acb20f4a0e9a8123d4923 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Thu Dec 15 15:57:47 2011 -0500 |
committer | Benjamin Peterson <benjamin@python.org> | Thu Dec 15 15:57:47 2011 -0500 |
tree | 9f25cb59bdbd23b7fb5d5483d09d82aa05bba3cf | |
parent | ca81bf76e582472e708f4a826e9f80edd7d7b423 [diff] | |
parent | e0a669e50cd38c34d440ed79d2362c1938a122c4 [diff] |
merge heads
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()