We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83aaef1 commit 285fcb9Copy full SHA for 285fcb9
Modules/_testsinglephase.c
@@ -59,9 +59,11 @@ init_state(module_state *state)
59
state->str_const == NULL);
60
61
state->initialized = _PyTime_GetMonotonicClock();
62
- if (state->initialized < 0) {
+ if (state->initialized == 0) {
63
+ PyErr_SetString(PyExc_RuntimeError, "could not get current time");
64
goto error;
65
}
66
+ assert(state->initialized > 0);
67
68
/* Add an exception type */
69
state->error = PyErr_NewException("_testsinglephase.error", NULL, NULL);
0 commit comments