summaryrefslogtreecommitdiff
path: root/numpy/testing/numpytest.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/testing/numpytest.py')
-rw-r--r--numpy/testing/numpytest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/testing/numpytest.py b/numpy/testing/numpytest.py
index 74e2e7305..64cde1c1e 100644
--- a/numpy/testing/numpytest.py
+++ b/numpy/testing/numpytest.py
@@ -154,6 +154,13 @@ class NumpyTestCase (unittest.TestCase):
save_stream.flush()
result.stream = save_stream
+ def warn(self, message):
+ print>>sys.stderr,'Warning: %s' % (message)
+ sys.stderr.flush()
+ def info(self, message):
+ print>>sys.stdout, message
+ sys.stdout.flush()
+
ScipyTestCase = NumpyTestCase
def _get_all_method_names(cls):