[SciPy-dev] [OT] Skipping a function wronlgy identified by nose

Matthew Brett matthew.brett@gmail....
Thu Feb 19 15:41:25 CST 2009


> Here is the problem: in our library, we have a perfectly valid function
> that is called 'onesample_test'. Due to the name, nose identifies it as a
> function (also because it is defined in a file called
> 'statistical_test.py').

Probably you want:

from numpy.testing import dec

def function_that_tests():

If you don't want to import the decorator, just

def function_that_tests():
function_that_tests.__test__ = False



More information about the Scipy-dev mailing list