Browse Source

Default runtests

David Cramer 12 years ago
parent
commit
621e0d058d
1 changed files with 5 additions and 2 deletions
  1. 5 2
      runtests.py

+ 5 - 2
runtests.py

@@ -5,8 +5,11 @@ import sys
 def runtests(args=None):
     import pytest
 
-    if args is None:
-        args = ['tests']
+    if not args:
+        args = []
+
+    if not any(a for a in args[1:] if not a.startswith('-')):
+        args.append('tests')
 
     sys.exit(pytest.main(args))