diff --git a/Lib/test/test_module.py b/Lib/test/test_module.py index 7734fb04a26..15836cac93e 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__)