summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/testing/decorators.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/testing/decorators.py b/numpy/testing/decorators.py
index ac3526ea7..b0ddb1880 100644
--- a/numpy/testing/decorators.py
+++ b/numpy/testing/decorators.py
@@ -135,9 +135,9 @@ def skipif(skip_condition, msg=None):
if msg is None:
out = 'Test skipped due to test condition'
else:
- out = '\n'+msg
+ out = msg
- return "Skipping test: %s%s" % (func.__name__,out)
+ return "Skipping test: %s: %s" % (func.__name__, out)
# We need to define *two* skippers because Python doesn't allow both
# return with value and yield inside the same function.