Files
deb-python-eventlet/tests/isolated/patcher_blocking_select_methods_are_deleted.py
Jakub Stasiak f63165c0e3 green select: Delete unpatched methods
Explanation in the comment in the code.
2016-01-07 00:50:01 +01:00

16 lines
483 B
Python

if __name__ == '__main__':
import eventlet
eventlet.monkey_patch()
# Leaving unpatched select methods in the select module is a recipe
# for trouble and this test makes sure we don't do that.
#
# Issues:
# * https://bitbucket.org/eventlet/eventlet/issues/167
# * https://github.com/eventlet/eventlet/issues/169
import select
for name in ['poll', 'epoll', 'kqueue', 'kevent']:
assert not hasattr(select, name), name
print('pass')