Commits

Amaury Forgeot d'Arc  committed afdb9dc

Apply 2.7 tweaks to 3.2 test_copy

  • Participants
  • Parent commits a348157
  • Branches py3k

Comments (0)

Files changed (1)

File lib-python/3.2/test/test_copy.py

         self.assertEqual(v[c], d)
         self.assertEqual(len(v), 2)
         del c, d
+        support.gc_collect()
         self.assertEqual(len(v), 1)
         x, y = C(), C()
         # The underlying containers are decoupled
         self.assertEqual(v[a].i, b.i)
         self.assertEqual(v[c].i, d.i)
         del c
+        support.gc_collect()
         self.assertEqual(len(v), 1)
 
     def test_deepcopy_weakvaluedict(self):
         self.assertTrue(t is d)
         del x, y, z, t
         del d
+        support.gc_collect()
         self.assertEqual(len(v), 1)
 
     def test_deepcopy_bound_method(self):