

def test_FitError(self):
    for t in SPARSE_TYPES:
        sparse_matrix = getattr(scipy.sparse, t)
        (X, y) = (sparse_matrix((8, 16)), sparse_matrix((8, 16)))
        assert_raises((TypeError, NotImplementedError), self.nn._fit, X, y)

dataset/ETHPy150Open aigamedev/scikit-neuralnetwork/sknn/tests/test_types.py TestConvolution.test_FitError/original