diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-01-30 23:26:05 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-01-30 23:26:05 (GMT) |
commit | a04ae012cede11d49d4df4551500cc0ba07b3dfb (patch) | |
tree | 3bb881f067eb793169442885af2bf4d9cf5026dd /Modules | |
parent | 53ffca5afbe6436b21054997ea33178128035f11 (diff) | |
download | cpython-a04ae012cede11d49d4df4551500cc0ba07b3dfb.zip cpython-a04ae012cede11d49d4df4551500cc0ba07b3dfb.tar.gz cpython-a04ae012cede11d49d4df4551500cc0ba07b3dfb.tar.bz2 |
move test outside WITH_THREAD section
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_testcapimodule.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 7aa5758..1d889dd 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -1144,8 +1144,6 @@ raise_exception(PyObject *self, PyObject *args) return NULL; } -#ifdef WITH_THREAD - static PyObject * test_datetime_capi(PyObject *self, PyObject *args) { if (PyDateTimeAPI) { @@ -1160,6 +1158,9 @@ test_datetime_capi(PyObject *self, PyObject *args) { return NULL; } + +#ifdef WITH_THREAD + /* test_thread_state spawns a thread of its own, and that thread releases * `thread_done` when it's finished. The driver code has to know when the * thread finishes, because the thread uses a PyObject (the callable) that |