[pypy-issue] [issue1514] module behaviour incompatibility which makes eventlet fail

YAMAMOTO Takashi tracker at bugs.pypy.org
Fri Jun 28 06:14:31 CEST 2013

YAMAMOTO Takashi <yamt at mwd.biglobe.ne.jp> added the comment:

probably this is a better test case.


import sys
import select

original = select.select
m = __import__('select')
setattr(m, 'select', None)

assert select.select == None
assert m.select == None

# reload
del sys.modules['select']
import select

assert select.select == original
assert m.select == None  # this fails on pypy

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list