Commits

Armin Rigo committed c81cc58

Failing test

Comments (0)

Files changed (1)

pypy/objspace/std/test/test_mapdict.py

         del a.x
         raises(AttributeError, "a.x")
 
+    def test_del(self):
+        class A(object):
+            def __del__(self):
+                seen.append(1)
+        seen = []
+        a = ()
+        del a
+        for i in range(5):
+            if not seen:
+                import gc
+                gc.collect()
+        assert seen == [1]
+
+
 class AppTestWithMapDictAndCounters(object):
     spaceconfig = {"objspace.std.withmapdict": True,
                    "objspace.std.withmethodcachecounter": True,