From: Benjamin Peterson Date: Thu, 15 Dec 2011 20:57:15 +0000 (-0500) Subject: fix this test to actually test something (closes #13606) X-Git-Tag: v3.3.0a1~603 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ca81bf76e582472e708f4a826e9f80edd7d7b423;p=thirdparty%2FPython%2Fcpython.git 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 7734fb04a260..56177894b34a 100644 --- a/Lib/test/test_module.py +++ b/Lib/test/test_module.py @@ -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()