X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=eventlet%2Ftests%2Fpatcher_test_importlib_lock.py;fp=eventlet%2Ftests%2Fpatcher_test_importlib_lock.py;h=0000000000000000000000000000000000000000;hb=358bd9258c2b6d2ee74de4dfd07a5123107abad4;hp=8f7cea70627b4753561d2d4d2bdd9a93350f950d;hpb=376ff3bfe7071cc0793184a378c4e74508fb0d97;p=packages%2Ftrusty%2Fpython-eventlet.git diff --git a/eventlet/tests/patcher_test_importlib_lock.py b/eventlet/tests/patcher_test_importlib_lock.py deleted file mode 100644 index 8f7cea7..0000000 --- a/eventlet/tests/patcher_test_importlib_lock.py +++ /dev/null @@ -1,30 +0,0 @@ -from __future__ import print_function - -import sys - -import eventlet - - -# no standard tests in this file, ignore -__test__ = False - - -def do_import(): - import encodings.idna - - -if __name__ == '__main__': - eventlet.monkey_patch() - threading = eventlet.patcher.original('threading') - - sys.modules.pop('encodings.idna', None) - - # call "import encodings.idna" in a new thread - thread = threading.Thread(target=do_import) - thread.start() - - # call "import encodings.idna" in the main thread - do_import() - - thread.join() - print('ok')