summaryrefslogtreecommitdiff
path: root/tests/stdlib
diff options
context:
space:
mode:
authorRyan Williams <rdw@lindenlab.com>2009-12-17 10:37:59 -0800
committerRyan Williams <rdw@lindenlab.com>2009-12-17 10:37:59 -0800
commit441f72f4081c8a3ede26d0fc06d6c2ca2eff81fd (patch)
treedd00600b0651fb231c1dadf8d568c9bd008e4e7e /tests/stdlib
parentc7d3432b298f3e05e6775ffd999418006be14d77 (diff)
downloadeventlet-441f72f4081c8a3ede26d0fc06d6c2ca2eff81fd.tar.gz
Moved get_hub, use_hub, get_default_hub to eventlet.hubs. This is a step in the direction of better factoring and fewer circular-ish dependencies.
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/test_thread.py4
-rw-r--r--tests/stdlib/test_threading_local.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/stdlib/test_thread.py b/tests/stdlib/test_thread.py
index d0e40cf..0c4f8f3 100644
--- a/tests/stdlib/test_thread.py
+++ b/tests/stdlib/test_thread.py
@@ -3,8 +3,8 @@ from eventlet.green import thread
from eventlet.green import time
# necessary to initialize the hub before running on 2.5
-from eventlet import api
-api.get_hub()
+from eventlet import hubs
+hubs.get_hub()
patcher.inject('test.test_thread',
globals(),
diff --git a/tests/stdlib/test_threading_local.py b/tests/stdlib/test_threading_local.py
index 04ab5db..85e4a0f 100644
--- a/tests/stdlib/test_threading_local.py
+++ b/tests/stdlib/test_threading_local.py
@@ -4,8 +4,8 @@ from eventlet.green import threading
from eventlet.green import time
# hub requires initialization before test can run
-from eventlet import api
-api.get_hub()
+from eventlet import hubs
+hubs.get_hub()
patcher.inject('test.test_threading_local',
globals(),