summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2004-08-24 22:24:08 (GMT)
committerMark Hammond <mhammond@skippinet.com.au>2004-08-24 22:24:08 (GMT)
commiteb619bb80b651a99abd1fe016d0ac024cbd9677a (patch)
treede42b4d10f9e50b150053df48391d466d0b27b67 /Lib
parent8107ca47ebc79fa9cec8feea69d270f3774da669 (diff)
downloadcpython-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')
-rw-r--r--Lib/test/test_capi.py4
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()
+