Commits

Benjamin Peterson committed 11b09df

don't rely on the order of module clearing

  • Participants
  • Parent commits f4b7ecf
  • Branches 3.1

Comments (0)

Files changed (1)

Lib/test/test_module.py

         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__)