diff options
| author | Sergey Shepelev <temotor@gmail.com> | 2018-02-17 22:41:37 +0300 |
|---|---|---|
| committer | Sergey Shepelev <temotor@gmail.com> | 2018-03-11 02:21:01 +0300 |
| commit | fb300387a2f2761423dc71b3e4d18cb26a360368 (patch) | |
| tree | 0dad33d1bf722f8701c5b919d658d3f559c06912 /tests/stdlib/all.py | |
| parent | 8fe75a76e773305f9748e3922aaf44bf4c39a939 (diff) | |
| download | eventlet-up.tar.gz | |
hubs: drop pyevent hubup
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): |
