[Nipy-devel] doctest, etc.

Jonathan Taylor jonathan.taylor at stanford.edu
Fri Jun 30 14:03:51 CDT 2006


1) I added docstring testing capability to TestTool (just use a -d flag 
to test the docstrings in a package).

2) I think that all the instances of this code snippet are obsolete when 
using TestTool:

-------------------------------------------

def suite():
    return unittest.makeSuite(MontageTest)


if __name__ == '__main__':
    unittest.main()
--------------------------------------------

As it stands now, they will generally fail unless PYTHONPATH has 
neuroimaging/tests/data in it (i.e. they will only work with a full svn 
checkout and not
on, say, a windows binary installed version). Should we just delete them 
to avoid confusion?

3) On the issue of where to put files that do or do not depend on nipy. 
The file

lib/testutils.py

imports from neuroimaging, shouldn't we move it, to, say

lib/neuroimaging/tools

which is the only place it is used?

Any thoughts?

-- Jonathan

-- 

------------------------------------------------------------------------
Jonathan Taylor                           Tel:   650.723.9230
Dept. of Statistics                       Fax:   650.725.8977
Sequoia Hall, 137                         www-stat.stanford.edu/~jtaylo
390 Serra Mall
Stanford, CA 94305



More information about the Nipy-devel mailing list