Skip to content

Commit 366a376

Browse files
felixxmsigvef
authored andcommitted
Fix running runtests.py without arguments. (encode#7954)
Regression in aa12a5f.
1 parent 3abf9cc commit 366a376

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runtests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,7 @@ def is_class(string):
4545
# `runtests.py TestCase [flags]`
4646
# `runtests.py test_function [flags]`
4747
pytest_args = ['tests', '-k', pytest_args[0]] + pytest_args[1:]
48+
else:
49+
pytest_args = []
4850

4951
sys.exit(pytest.main(pytest_args))

0 commit comments

Comments
 (0)