[Python-checkins] cpython: fix this test to actually test something (closes #13606)
benjamin.peterson
python-checkins at python.org
Thu Dec 15 21:57:51 CET 2011
http://hg.python.org/cpython/rev/c9ae0eb66959
changeset: 73991:c9ae0eb66959
parent: 73989:df5c28c01deb
user: Benjamin Peterson <benjamin at python.org>
date: Thu Dec 15 15:57:15 2011 -0500
summary:
fix this test to actually test something (closes #13606)
Thanks Mark Shannon.
files:
Lib/test/test_module.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_module.py b/Lib/test/test_module.py
--- 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()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list