Commit 9074af44 authored by Jason Madden's avatar Jason Madden

Merge branch 'cython_abs_import' of https://github.com/fantix/gevent into pr390

parents 384ccb69 9e2fbdf3
...@@ -2,11 +2,12 @@ ...@@ -2,11 +2,12 @@
cimport cython cimport cython
cimport libev cimport libev
from python cimport * from python cimport *
import sys
# Work around lack of absolute_import in Cython # Work around lack of absolute_import in Cython
# Note for PY3: not doing so will leave reference to locals() on import
sys = __import__('sys', level=0)
os = __import__('os', level=0) os = __import__('os', level=0)
import traceback traceback = __import__('traceback', level=0)
import signal as signalmodule signalmodule = __import__('signal', level=0)
__all__ = ['get_version', __all__ = ['get_version',
......
import weakref
class Dummy:
def __init__(self):
__import__('gevent.core')
assert weakref.ref(Dummy())() is None
from gevent import socket
assert weakref.ref(socket.socket())() is None
...@@ -54,6 +54,12 @@ if LEAKTEST: ...@@ -54,6 +54,12 @@ if LEAKTEST:
if PYPY: if PYPY:
FAILING_TESTS += [ FAILING_TESTS += [
# 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