diff options
Diffstat (limited to 'tests/stdlib/all.py')
| -rw-r--r-- | tests/stdlib/all.py | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tests/stdlib/all.py b/tests/stdlib/all.py index 3d05d1e..23df5b2 100644 --- a/tests/stdlib/all.py +++ b/tests/stdlib/all.py @@ -10,18 +10,16 @@ Many of these tests make connections to external servers, and all.py tries to sk tests rather than failing them, so you can get some work done on a plane. """ -from eventlet import debug -debug.hub_prevent_multiple_readers(False) +import eventlet.hubs +import eventlet.debug +eventlet.debug.hub_prevent_multiple_readers(False) def restart_hub(): - from eventlet import hubs - hub = hubs.get_hub() - hub_shortname = hub.__module__.split('.')[-1] - # don't restart the pyevent hub; it's not necessary - if hub_shortname != 'pyevent': - hub.abort() - hubs.use_hub(hub_shortname) + hub = eventlet.hubs.get_hub() + hub_name = hub.__module__ + hub.abort() + eventlet.hubs.use_hub(hub_name) def assimilate_patched(name): |
