Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r58974:afdb9dc20a1a
Date: 2012-11-17 19:00 +0100
http://bitbucket.org/pypy/pypy/changeset/afdb9dc20a1a/

Log:    Apply 2.7 tweaks to 3.2 test_copy

diff --git a/lib-python/3.2/test/test_copy.py b/lib-python/3.2/test/test_copy.py
--- a/lib-python/3.2/test/test_copy.py
+++ b/lib-python/3.2/test/test_copy.py
@@ -643,6 +643,7 @@
         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
@@ -672,6 +673,7 @@
         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):
@@ -695,6 +697,7 @@
         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):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to