Commit de600560 authored by Jason Madden's avatar Jason Madden

Don't let test__refcount_core be a failing test on PyPy. Fixes #390.

parent 9074af44
...@@ -7,7 +7,9 @@ Changelog ...@@ -7,7 +7,9 @@ Changelog
Unreleased Unreleased
---------- ----------
- Add support for Python 3.3 and 3.4. - Add support for Python 3.3 and 3.4. Many people have contributed to
this effort, including but not limited to Fantix King, hashstat,
Elizabeth Myers, jander, Luke Woydziak, and others.
- Add support for PyPy. - Add support for PyPy.
- Drop support for Python 2.5. Python 2.5 users can continue to use - Drop support for Python 2.5. Python 2.5 users can continue to use
gevent 1.0.x. gevent 1.0.x.
......
...@@ -10,4 +10,13 @@ assert weakref.ref(Dummy())() is None ...@@ -10,4 +10,13 @@ assert weakref.ref(Dummy())() is None
from gevent import socket from gevent import socket
assert weakref.ref(socket.socket())() is None try:
assert weakref.ref(socket.socket())() is None
except AssertionError:
import sys
if hasattr(sys, 'pypy_version_info'):
# PyPy uses a non refcounted GC which may defer
# the collection of the weakref, unlike CPython
pass
else:
raise
...@@ -56,10 +56,6 @@ if PYPY: ...@@ -56,10 +56,6 @@ if PYPY:
FAILING_TESTS += [ FAILING_TESTS += [
# Different in PyPy: # Different in PyPy:
# PyPy has no refcount
# http://pypy.readthedocs.org/en/latest/cpython_differences.html#differences-related-to-garbage-collection-strategies
'test__refcount_core.py',
# Not implemented: # Not implemented:
# --- # ---
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment