Skip to content

Commit 29a844c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f7ed1a4 commit 29a844c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ macro(pybind11_filter_tests LISTNAME)
3636
list(FIND LIST_WITHOUT_EXTENSIONS ${filename_no_ext} _FILE_FOUND)
3737
if(_FILE_FOUND GREATER -1)
3838
list(REMOVE_AT ${LISTNAME} ${_FILE_FOUND}) # And remove from the list with extensions.
39-
list(REMOVE_AT LIST_WITHOUT_EXTENSIONS ${_FILE_FOUND}) # And our search list, to ensure it is in sync.
39+
list(REMOVE_AT LIST_WITHOUT_EXTENSIONS ${_FILE_FOUND}
40+
)# And our search list, to ensure it is in sync.
4041
set(PYBIND11_FILTER_TESTS_FOUND ON)
4142
endif()
4243
endforeach()
@@ -181,7 +182,8 @@ if(PYBIND11_TEST_OVERRIDE)
181182
string(REGEX REPLACE "\\.[^.]*;" ";" TEST_FILES_NO_EXT "${PYBIND11_TEST_FILES};")
182183
# This allows the override to be done with extensions, preserving backwards compatibility.
183184
foreach(test_name ${TEST_FILES_NO_EXT})
184-
if(NOT ${test_name} IN_LIST TEST_OVERRIDE_NO_EXT) # If not in the whitelist, add to be filtered out.
185+
if(NOT ${test_name} IN_LIST TEST_OVERRIDE_NO_EXT
186+
)# If not in the whitelist, add to be filtered out.
185187
list(APPEND PYBIND11_TEST_FILTER ${test_name})
186188
endif()
187189
endforeach()

0 commit comments

Comments
 (0)