From fe16d748195f07af0406d11eb42e343f64de4c6a Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Wed, 28 Apr 2021 09:20:57 +0200 Subject: [PATCH] Fix running runtests.py without arguments. Regression in aa12a5f967705f70b1dbe457bb2396d106e3570b. --- runtests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtests.py b/runtests.py index c340b55d8..98f34c067 100755 --- a/runtests.py +++ b/runtests.py @@ -45,5 +45,7 @@ if __name__ == "__main__": # `runtests.py TestCase [flags]` # `runtests.py test_function [flags]` pytest_args = ['tests', '-k', pytest_args[0]] + pytest_args[1:] + else: + pytest_args = [] sys.exit(pytest.main(pytest_args))