Skip to content
Snippets Groups Projects
Commit 1b69298c authored by Gigg, Martyn Anthony's avatar Gigg, Martyn Anthony
Browse files

Catch case where no argument are passed.

Missed this when moving script around.
Refs #9639
parent 9d7f8c36
No related branches found
No related tags found
No related merge requests found
......@@ -123,10 +123,13 @@ def find_test_files(src_dir, name_re):
Args:
src_dir (str): A string giving the source directory of doc files
name_re (str): A regex to match against a test filename.
name_re (str): A regex to match against a test filename. If None
then None is returned
Returns:
A list of paths to the chosen test files.
"""
if name_re is None:
return None
name_re_comp = re.compile(name_re)
testpaths = []
for dirpath, dirnames, filenames in os.walk(src_dir):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment