Author: benjamin.peterson Date: Sun Jan 31 00:26:05 2010 New Revision: 77866 Log: move test outside WITH_THREAD section Modified: python/trunk/Modules/_testcapimodule.c Modified: python/trunk/Modules/_testcapimodule.c ============================================================================== --- python/trunk/Modules/_testcapimodule.c (original) +++ python/trunk/Modules/_testcapimodule.c Sun Jan 31 00:26:05 2010 @@ -1144,8 +1144,6 @@ return NULL; } -#ifdef WITH_THREAD - static PyObject * test_datetime_capi(PyObject *self, PyObject *args) { if (PyDateTimeAPI) { @@ -1160,6 +1158,9 @@ 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
participants (1)
-
benjamin.peterson