X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=eventlet%2Ftests%2Fstdlib%2Ftest_threading_local.py;fp=eventlet%2Ftests%2Fstdlib%2Ftest_threading_local.py;h=6b923a6a91078c12dcd57f11794e51fde76b1c31;hb=376ff3bfe7071cc0793184a378c4e74508fb0d97;hp=0000000000000000000000000000000000000000;hpb=70992db4bef26426213a8eae488be377cdd655ae;p=packages%2Ftrusty%2Fpython-eventlet.git diff --git a/eventlet/tests/stdlib/test_threading_local.py b/eventlet/tests/stdlib/test_threading_local.py new file mode 100644 index 0000000..6b923a6 --- /dev/null +++ b/eventlet/tests/stdlib/test_threading_local.py @@ -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()