summaryrefslogtreecommitdiff
path: root/numpy/testing/nulltester.py
diff options
context:
space:
mode:
authorAlan McIntyre <alan.mcintyre@local>2008-06-17 00:23:20 +0000
committerAlan McIntyre <alan.mcintyre@local>2008-06-17 00:23:20 +0000
commitc331857d8663ecf54bbe88c834755da749e8ab52 (patch)
treef4cc69ec328a5ff4d3b108f3610acb119a196493 /numpy/testing/nulltester.py
parent22ba7886a84dc6a16ca75871f7cd2f10ef8de1f9 (diff)
downloadnumpy-c331857d8663ecf54bbe88c834755da749e8ab52.tar.gz
Switched to use nose to run tests. Added test and bench functions to all modules.
Diffstat (limited to 'numpy/testing/nulltester.py')
-rw-r--r--numpy/testing/nulltester.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/numpy/testing/nulltester.py b/numpy/testing/nulltester.py
new file mode 100644
index 000000000..50d5484f6
--- /dev/null
+++ b/numpy/testing/nulltester.py
@@ -0,0 +1,15 @@
+''' Null tester to signal nose tests disabled
+
+Merely returns error reporting lack of nose package or version number
+below requirements.
+
+See pkgtester, nosetester modules
+
+'''
+
+class NullTester(object):
+ def test(self, labels=None, *args, **kwargs):
+ raise ImportError, \
+ 'Need nose >=0.10 for tests - see %s' % \
+ 'http://somethingaboutorange.com/mrl/projects/nose'
+ bench = test