Skip to content

Commit edcb5ac

Browse files
committed
Enable faulthandler for pytest
1 parent 2cbc975 commit edcb5ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ set(PYBIND11_PYTEST_ARGS
557557
# A single command to compile and run the tests
558558
add_custom_target(
559559
pytest
560-
COMMAND ${PYBIND11_TEST_PREFIX_COMMAND} ${PYTHON_EXECUTABLE} -m pytest
560+
COMMAND ${PYBIND11_TEST_PREFIX_COMMAND} ${PYTHON_EXECUTABLE} -X faulthandler -m pytest
561561
${PYBIND11_ABS_PYTEST_FILES} ${PYBIND11_PYTEST_ARGS}
562562
DEPENDS ${test_targets}
563563
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"

0 commit comments

Comments
 (0)