diff options
author | Mark Hammond <mhammond@skippinet.com.au> | 2004-08-24 22:24:08 (GMT) |
---|---|---|
committer | Mark Hammond <mhammond@skippinet.com.au> | 2004-08-24 22:24:08 (GMT) |
commit | eb619bb80b651a99abd1fe016d0ac024cbd9677a (patch) | |
tree | de42b4d10f9e50b150053df48391d466d0b27b67 /Lib/test/test_capi.py | |
parent | 8107ca47ebc79fa9cec8feea69d270f3774da669 (diff) | |
download | cpython-eb619bb80b651a99abd1fe016d0ac024cbd9677a.zip cpython-eb619bb80b651a99abd1fe016d0ac024cbd9677a.tar.gz cpython-eb619bb80b651a99abd1fe016d0ac024cbd9677a.tar.bz2 |
Fix for [ 1010677 ] thread Module Breaks PyGILState_Ensure(),
and a test case.
When booting a new thread, use the PyGILState API to manage the GIL.
Diffstat (limited to 'Lib/test/test_capi.py')
-rw-r--r-- | Lib/test/test_capi.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index 82bded4..bda706a 100644 --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -43,3 +43,7 @@ except AttributeError: if have_thread_state: TestThreadState() + import threading + t=threading.Thread(target=TestThreadState) + t.start() + |