summaryrefslogtreecommitdiff
path: root/numpy/testing/numpytest.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2006-01-31 11:00:23 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2006-01-31 11:00:23 +0000
commit389d6d2d11f3caa0255218bd8cbdeca074c035ee (patch)
tree96a33ce7bd41898045164224db6f0c16002cfe05 /numpy/testing/numpytest.py
parent8343ed35bde1628ec04fd09b0ab23587da89caf5 (diff)
downloadnumpy-389d6d2d11f3caa0255218bd8cbdeca074c035ee.tar.gz
Added warn,info methods to NumpyTestCase.
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):