summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-08-14 23:27:00 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-08-14 23:27:00 +0000
commit5d9449f721b3a2ab6dceeabd23e9f50348c4282a (patch)
treec37aac18c939bc5084f27085fd3f57f0a5fa70c0
parentf77587b2cd9091a99a31bb0d5f99c57cc077aa8e (diff)
downloadnumpy-5d9449f721b3a2ab6dceeabd23e9f50348c4282a.tar.gz
Add a test function to the ctypeslib module.
-rw-r--r--numpy/ctypeslib.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/ctypeslib.py b/numpy/ctypeslib.py
index ddd8bb714..99169ae21 100644
--- a/numpy/ctypeslib.py
+++ b/numpy/ctypeslib.py
@@ -1,4 +1,4 @@
-__all__ = ['ctypes_load_library', 'ndpointer']
+__all__ = ['ctypes_load_library', 'ndpointer', 'test']
import sys, os
from numpy import integer, product, ndarray, dtype as _dtype
@@ -109,3 +109,7 @@ def ndpointer(dtype=None, ndim=None, shape=None, flags=None):
"_flags_" : num})
_pointer_type_cache[dtype] = klass
return klass
+
+def test(level=1, verbosity=1):
+ from numpy.testing import NumpyTest
+ return NumpyTest().test(level, verbosity)