[pypy-commit] pypy py3.5: Skip a check on pypy

arigo pypy.commits at gmail.com
Thu Dec 15 08:32:10 EST 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r89067:c143364bcd26
Date: 2016-12-15 14:30 +0100
http://bitbucket.org/pypy/pypy/changeset/c143364bcd26/

Log:	Skip a check on pypy

diff --git a/lib-python/3/test/test_generators.py b/lib-python/3/test/test_generators.py
--- a/lib-python/3/test/test_generators.py
+++ b/lib-python/3/test/test_generators.py
@@ -47,7 +47,8 @@
         g = gen()
         next(g)
         g.send(g)
-        self.assertGreater(sys.getrefcount(g), 2)
+        if hasattr(sys, 'getrefcount'):
+            self.assertGreater(sys.getrefcount(g), 2)
         self.assertFalse(finalized)
         del g
         support.gc_collect()


More information about the pypy-commit mailing list