mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 01:26:53 +03:00
Fix running runtests.py without arguments. (#7954)
Regression in aa12a5f967
.
This commit is contained in:
parent
3875d3284e
commit
bc075212cb
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user