Author: Ronan Lamy <[email protected]>
Branch: py3k
Changeset: r84423:4304d6f2fd99
Date: 2016-05-13 17:00 +0100
http://bitbucket.org/pypy/pypy/changeset/4304d6f2fd99/

Log:    This test shouldn't be cpython_only

diff --git a/lib-python/3/test/test_tempfile.py 
b/lib-python/3/test/test_tempfile.py
--- a/lib-python/3/test/test_tempfile.py
+++ b/lib-python/3/test/test_tempfile.py
@@ -1128,7 +1128,6 @@
                          "were deleted")
         d2.cleanup()
 
-    @support.cpython_only
     def test_del_on_collection(self):
         # A TemporaryDirectory is deleted when garbage collected
         dir = tempfile.mkdtemp()
@@ -1136,6 +1135,7 @@
             d = self.do_create(dir=dir)
             name = d.name
             del d # Rely on refcounting to invoke __del__
+            support.gc_collect()
             self.assertFalse(os.path.exists(name),
                         "TemporaryDirectory %s exists after __del__" % name)
         finally:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to