Add python-eventlet 0.16.1
[packages/trusty/python-eventlet.git] / eventlet / tests / stdlib / test_threading_local.py
diff --git a/eventlet/tests/stdlib/test_threading_local.py b/eventlet/tests/stdlib/test_threading_local.py
new file mode 100644 (file)
index 0000000..6b923a6
--- /dev/null
@@ -0,0 +1,18 @@
+from eventlet import patcher
+from eventlet.green import thread
+from eventlet.green import threading
+from eventlet.green import time
+
+# hub requires initialization before test can run
+from eventlet import hubs
+hubs.get_hub()
+
+patcher.inject(
+    'test.test_threading_local',
+    globals(),
+    ('time', time),
+    ('thread', thread),
+    ('threading', threading))
+
+if __name__ == '__main__':
+    test_main()