mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
move test outside WITH_THREAD section
This commit is contained in:
parent
53ffca5afb
commit
a04ae012ce
1 changed files with 3 additions and 2 deletions
|
@ -1144,8 +1144,6 @@ raise_exception(PyObject *self, PyObject *args)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WITH_THREAD
|
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
test_datetime_capi(PyObject *self, PyObject *args) {
|
test_datetime_capi(PyObject *self, PyObject *args) {
|
||||||
if (PyDateTimeAPI) {
|
if (PyDateTimeAPI) {
|
||||||
|
@ -1160,6 +1158,9 @@ test_datetime_capi(PyObject *self, PyObject *args) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef WITH_THREAD
|
||||||
|
|
||||||
/* test_thread_state spawns a thread of its own, and that thread releases
|
/* 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_done` when it's finished. The driver code has to know when the
|
||||||
* thread finishes, because the thread uses a PyObject (the callable) that
|
* thread finishes, because the thread uses a PyObject (the callable) that
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue