Skip to content

Commit

Permalink
Pytest should accept tests.py
Browse files Browse the repository at this point in the history
Closes UCL#56
  • Loading branch information
Mayeul d'Avezac committed Mar 30, 2017
1 parent 5a53971 commit 78bdbc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/AddPyTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function(add_pytest)
unset(all_tests)
foreach(source ${sources})
get_filename_component(filename "${source}" NAME)
if("${filename}" MATCHES "^tests?_.*\\.py")
if("${filename}" MATCHES "^tests?_?.*\\.py")
set(filename "${location}/${filename}")
pytest_name(testname "${source}" "${pytests_PREFIX}")
add_test(NAME ${testname}
Expand Down

0 comments on commit 78bdbc0

Please sign in to comment.