YAMAMOTO Takashi <[email protected]> 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 <[email protected]>
<https://bugs.pypy.org/issue1514>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to