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 @@
cimport cython
cimport libev
from python cimport *
import sys
# 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)
import traceback
import signal as signalmodule
traceback = __import__('traceback', level=0)
signalmodule = __import__('signal', level=0)
__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:
if PYPY:
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:
# ---
......
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