Skip to content

Commit

Permalink
add fflush on windows to attempt to make test more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakob committed Mar 28, 2023
1 parent d4323cd commit 67a1731
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nb_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,9 @@ static NB_NOINLINE bool nb_type_get_implicit(PyObject *src,
fprintf(stderr,
"nanobind: implicit conversion from type '%s' to type '%s' "
"failed!\n", name, dst_type->name);
#if defined(_WIN32)
fflush(stderr);
#endif

#if defined(Py_LIMITED_API)
Py_DECREF(name_py);
Expand Down

0 comments on commit 67a1731

Please sign in to comment.