Fix running runtests.py without arguments. (#7954)

Regression in aa12a5f967.
This commit is contained in:
Mariusz Felisiak 2021-05-24 09:47:44 +02:00 committed by GitHub
parent 3875d3284e
commit bc075212cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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