We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34453c2 commit a1cd624Copy full SHA for a1cd624
test/utils.py
@@ -930,13 +930,9 @@ def gevent_monkey_patched():
930
931
def eventlet_monkey_patched():
932
"""Check if eventlet's monkey patching is active."""
933
- try:
934
- import threading
935
- import eventlet
936
- return (threading.current_thread.__module__ ==
937
- 'eventlet.green.threading')
938
- except ImportError:
939
- return False
+ import threading
+ return (threading.current_thread.__module__ ==
+ 'eventlet.green.threading')
940
941
942
def is_greenthread_patched():
0 commit comments