Skip to content

Commit 2ed1177

Browse files
committed
Add fflush(stdout); to cIterator.c to get a tests passing on the command line even though fprintf was using '\n'. This tests was passing in Pycharm so presumably Pycharm must be flushing stdout after every test (?).
1 parent 43e323b commit 2ed1177

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cpy/Iterators/cIterator.c

+1
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ iterate_and_print(PyObject *Py_UNUSED(module), PyObject *args, PyObject *kwds) {
268268
return NULL;
269269
}
270270
fprintf(stdout, "%s: DONE\n", __FUNCTION__ );
271+
fflush(stdout);
271272
assert(!PyErr_Occurred());
272273
Py_RETURN_NONE;
273274
}

0 commit comments

Comments
 (0)