Skip to content

Commit 543ff87

Browse files
XuehaiPanhenryiii
authored andcommitted
feat: enable faulthandler for pytest
1 parent f7006c4 commit 543ff87

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
@@ -567,7 +567,7 @@ set(PYBIND11_PYTEST_ARGS
567567
# A single command to compile and run the tests
568568
add_custom_target(
569569
pytest
570-
COMMAND ${PYBIND11_TEST_PREFIX_COMMAND} ${PYTHON_EXECUTABLE} -m pytest
570+
COMMAND ${PYBIND11_TEST_PREFIX_COMMAND} ${PYTHON_EXECUTABLE} -X dev -X faulthandler -m pytest
571571
${PYBIND11_ABS_PYTEST_FILES} ${PYBIND11_PYTEST_ARGS}
572572
DEPENDS ${test_targets}
573573
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"

0 commit comments

Comments
 (0)