[SciPy-dev] mimicking output of scipy.test() in other packages that use numpy.testing

Nathan Bell wnbell@gmail....
Wed Mar 4 20:19:20 CST 2009


PyAMG uses numpy.testing for unittesting support.  How do I make
pyamg.test() output the SciPy and PyAMG version info as scipy.test()
does below?  I browsed through the numpy and scipy source trees and
it's still unclear to me where this information is provided to test().

FWIW here's the pyamg trunk:
http://code.google.com/p/pyamg/source/browse/#svn/trunk/pyamg


>>> from pyamg import test
>>> test()
Running unit tests for pyamg
NumPy version 1.2.1
NumPy is installed in /usr/lib/python2.5/site-packages/numpy
Python version 2.5.2 (r252:60911, Oct  5 2008, 19:24:49) [GCC 4.3.2]
nose version 0.10.1



>>> from scipy import test
>>> test()
Running unit tests for scipy
NumPy version 1.2.1
NumPy is installed in /usr/lib/python2.5/site-packages/numpy
SciPy version 0.7.0
SciPy is installed in /usr/lib/python2.5/site-packages/scipy
Python version 2.5.2 (r252:60911, Oct  5 2008, 19:24:49) [GCC 4.3.2]
nose version 0.10.1



-- 
Nathan Bell wnbell@gmail.com
http://graphics.cs.uiuc.edu/~wnbell/


More information about the Scipy-dev mailing list