]> granicus.if.org Git - python/commitdiff
move test outside WITH_THREAD section
authorBenjamin Peterson <benjamin@python.org>
Sat, 30 Jan 2010 23:26:05 +0000 (23:26 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 30 Jan 2010 23:26:05 +0000 (23:26 +0000)
Modules/_testcapimodule.c

index 7aa57581d8a9646668637e3c6a69639746ac0cb5..1d889ddb3237df488b55d0e2c1a6aacf4b3f24fb 100644 (file)
@@ -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