From: Benjamin Peterson Date: Mon, 20 Feb 2012 20:20:37 +0000 (-0500) Subject: don't rely on the order of module clearing X-Git-Tag: v3.1.5rc1~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a3ed11bd3409d61e6eb35995743e405790df2d3c;p=thirdparty%2FPython%2Fcpython.git don't rely on the order of module clearing --- diff --git a/Lib/test/test_module.py b/Lib/test/test_module.py index 7734fb04a260..15836cac93ec 100644 --- a/Lib/test/test_module.py +++ b/Lib/test/test_module.py @@ -70,7 +70,7 @@ class ModuleTests(unittest.TestCase): m = ModuleType("foo") m.destroyed = destroyed s = """class A: - def __del__(self): + def __del__(self, destroyed=destroyed): destroyed.append(1) a = A()""" exec(s, m.__dict__)