Fix running runtests.py without arguments.

Regression in aa12a5f967.
This commit is contained in:
Mariusz Felisiak 2021-04-28 09:20:57 +02:00
parent a0083f7f98
commit fe16d74819

View File

@ -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))