diff options
Diffstat (limited to 'tests/patcher_test_threading_original.py')
| -rw-r--r-- | tests/patcher_test_threading_original.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/patcher_test_threading_original.py b/tests/patcher_test_threading_original.py new file mode 100644 index 0000000..893fc80 --- /dev/null +++ b/tests/patcher_test_threading_original.py @@ -0,0 +1,18 @@ +# no standard tests in this file, ignore +__test__ = False + +if __name__ == '__main__': + import eventlet + eventlet.monkey_patch() + from eventlet import patcher + import threading + _threading = patcher.original('threading') + + def test(): + print(repr(threading.currentThread())) + + t = _threading.Thread(target=test) + t.start() + t.join() + print(len(threading._active)) + print(len(_threading._active)) |
