aboutsummaryrefslogtreecommitdiff
path: root/test/py/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/py/test.py')
-rwxr-xr-xtest/py/test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/py/test.py b/test/py/test.py
index 285fda542587..95859a66e29b 100755
--- a/test/py/test.py
+++ b/test/py/test.py
@@ -17,4 +17,9 @@ if __name__ == '__main__':
# argv; py.test test_directory_name user-supplied-arguments
args = [os.path.dirname(__file__) + '/tests']
args.extend(sys.argv)
+
+ # Use short format by default
+ if not [arg for arg in args if '--tb=' in arg]:
+ args.append('--tb=short')
+
sys.exit(pytest.main(args))