[SciPy-dev] Using nose

Matthew Brett matthew.brett@gmail....
Sat Oct 4 18:32:34 CDT 2008


Hi Anne,

> If I understand correctly, I think you might be able to use a
> variation of this technique:

I am confident I don't understand correctly, but how about:

data1 = [1]
data2 = [2]
datasets = [data1, data2]

def func1(data):
   pass

def func2(data):
   pass

funcs = [func1, func2]

# Nose test generator
def test_datas():
    for func in funcs:
        for dataset in datasets:
              yield func, data

?

Matthew


More information about the Scipy-dev mailing list