Author: Armin Rigo <[email protected]>
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()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit