diff --git a/tests/test_embed/test_interpreter.cpp b/tests/test_embed/test_interpreter.cpp index 85e11ba62..7b911b2b8 100644 --- a/tests/test_embed/test_interpreter.cpp +++ b/tests/test_embed/test_interpreter.cpp @@ -173,9 +173,11 @@ bool has_pybind11_internals_builtin() { #if PY_VERSION_HEX < 0x03080000 state_dict = py::reinterpret_borrow(PyEval_GetBuiltins()); #elif PY_VERSION_HEX < 0x03090000 - state_dict = py::reinterpret_borrow(PyInterpreterState_GetDict(_PyInterpreterState_Get())); + state_dict + = py::reinterpret_borrow(PyInterpreterState_GetDict(_PyInterpreterState_Get())); #else - state_dict = py::reinterpret_borrow(PyInterpreterState_GetDict(PyInterpreterState_Get())); + state_dict + = py::reinterpret_borrow(PyInterpreterState_GetDict(PyInterpreterState_Get())); #endif return state_dict.contains(PYBIND11_INTERNALS_ID); };