mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
Fix runtests.py when running without arguments
This commit is contained in:
parent
3875d3284e
commit
c4e985863f
|
@ -20,6 +20,8 @@ def is_class(string):
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
pytest_args = None
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
pytest_args = sys.argv[1:]
|
||||
first_arg = pytest_args[0]
|
||||
|
|
Loading…
Reference in New Issue
Block a user