Author: Armin Rigo <ar...@tunes.org>
Branch: py3.5
Changeset: r88793:cd880034bb7c
Date: 2016-12-01 16:54 +0100
http://bitbucket.org/pypy/pypy/changeset/cd880034bb7c/

Log:    Mark more tests based on gc.is_tracked() as impl detail

diff --git a/lib-python/3/test/test_finalization.py 
b/lib-python/3/test/test_finalization.py
--- a/lib-python/3/test/test_finalization.py
+++ b/lib-python/3/test/test_finalization.py
@@ -181,7 +181,8 @@
     def test_non_gc(self):
         with SimpleBase.test():
             s = NonGC()
-            self.assertFalse(gc.is_tracked(s))
+            if support.check_impl_detail():
+                self.assertFalse(gc.is_tracked(s))
             ids = [id(s)]
             del s
             gc.collect()
@@ -194,7 +195,8 @@
     def test_non_gc_resurrect(self):
         with SimpleBase.test():
             s = NonGCResurrector()
-            self.assertFalse(gc.is_tracked(s))
+            if support.check_impl_detail():
+                self.assertFalse(gc.is_tracked(s))
             ids = [id(s)]
             del s
             gc.collect()
diff --git a/lib-python/3/test/test_gc.py b/lib-python/3/test/test_gc.py
--- a/lib-python/3/test/test_gc.py
+++ b/lib-python/3/test/test_gc.py
@@ -526,6 +526,7 @@
 
         self.assertEqual(gc.get_referents(1, 'a', 4j), [])
 
+    @cpython_only
     def test_is_tracked(self):
         # Atomic built-in types are not tracked, user-defined objects and
         # mutable containers are.
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to