diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index a71d858df..68c47e085 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -164,6 +164,8 @@ if(PYBIND11_CUDA_TESTS) endif() string(REPLACE ".cpp" ".py" PYBIND11_PYTEST_FILES "${PYBIND11_TEST_FILES}") +list(APPEND PYBIND11_PYTEST_FILES test_class_sh_module_local.py) +list(SORT PYBIND11_PYTEST_FILES COMPARE NATURAL) # Contains the set of test files that require pybind11_cross_module_tests to be # built; if none of these are built (i.e. because TEST_OVERRIDE is used and