summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_polynomial.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2006-04-26 22:51:40 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2006-04-26 22:51:40 +0000
commit3f682ff50232c35610ff885c6c1a7e3d400866d7 (patch)
tree9d6c956e9e93ece193af242ff1b6fe93b0ff94ce /numpy/lib/tests/test_polynomial.py
parent7413032ea6011c74524aa5ecc384b2ae4964d6e9 (diff)
downloadnumpy-3f682ff50232c35610ff885c6c1a7e3d400866d7.tar.gz
Added NumpyTestCase.rundocs method to support running doc-tests via unittest machinery - needed for running tests via testoob.
Diffstat (limited to 'numpy/lib/tests/test_polynomial.py')
-rw-r--r--numpy/lib/tests/test_polynomial.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/lib/tests/test_polynomial.py b/numpy/lib/tests/test_polynomial.py
index dac4d866f..75fcaecfb 100644
--- a/numpy/lib/tests/test_polynomial.py
+++ b/numpy/lib/tests/test_polynomial.py
@@ -75,9 +75,8 @@ poly1d([ 2.])
from numpy.testing import *
-import doctest
-def test_suite(level=1):
- return doctest.DocTestSuite()
+class test_docs(NumpyTestCase):
+ def check_doctests(self): return self.rundocs()
if __name__ == "__main__":
ScipyTest().run()