Skip to content
Snippets Groups Projects
Commit 39804c23 authored by Sander Mathijs van Veen's avatar Sander Mathijs van Veen
Browse files

When there are no test cases given, set test filename to None.

parent bfdd1d16
No related branches found
No related tags found
No related merge requests found
......@@ -146,7 +146,7 @@ def main(tests, verbose=0, color=True):
# Create the text runner and execute the tests.
runner = TextTestRunner(verbosity=verbose, color=color)
suite = unittest.TestSuite(testcases)
suite.filename = testfile
suite.filename = testfile if tests else None
result = runner.run(suite)
......
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