diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2014-11-20 12:25:47 +0100 |
|---|---|---|
| committer | Sergey Shepelev <temotor@gmail.com> | 2014-12-21 17:45:37 +0300 |
| commit | 5e392fea66953751985a0d64db5f561f4572a926 (patch) | |
| tree | be92b9f9ef8e47314369c5bf7573bf30a7d520a9 /tests/patcher_test.py | |
| parent | 7c21c8f92eed58c508f30defed133071c5728df7 (diff) | |
| download | eventlet-py3_importlib.tar.gz | |
Fix monkey_patch() on Python 3py3_importlib
The importlib module must use real thread locks, not eventlet.Semaphore.
Diffstat (limited to 'tests/patcher_test.py')
| -rw-r--r-- | tests/patcher_test.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/patcher_test.py b/tests/patcher_test.py index f80b589..5c9076f 100644 --- a/tests/patcher_test.py +++ b/tests/patcher_test.py @@ -492,5 +492,10 @@ t2.join() self.assertEqual(lines[1], "True", lines[1]) +def test_importlib_lock(): + output = run_python('tests/patcher_test_importlib_lock.py') + assert output.rstrip() == b'ok' + + if __name__ == '__main__': main() |
