[Numpy-svn] r3023 - trunk/numpy

numpy-svn at scipy.org numpy-svn at scipy.org
Mon Aug 14 18:27:02 CDT 2006


Author: oliphant
Date: 2006-08-14 18:27:00 -0500 (Mon, 14 Aug 2006)
New Revision: 3023

Modified:
   trunk/numpy/ctypeslib.py
Log:
Add a test function to the ctypeslib module.

Modified: trunk/numpy/ctypeslib.py
===================================================================
--- trunk/numpy/ctypeslib.py	2006-08-14 23:15:21 UTC (rev 3022)
+++ trunk/numpy/ctypeslib.py	2006-08-14 23:27:00 UTC (rev 3023)
@@ -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 @@
                   "_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)



More information about the Numpy-svn mailing list