[Numpy-discussion] broken numpy.core.tests.test_multiarray.TestScalarIndexing.SetUp

Eric Firing efiring at hawaii.edu
Thu Apr 17 14:16:15 EDT 2008


While trying to figure out how to write tests for "take", I stumbled 
across this in numpy.core.tests.test_multiarray.py:

class TestScalarIndexing(NumpyTestCase):
     def setUp(self):
         self.d = array([0,1])[0],

     def check_ellipsis_subscript(self):
         a, = self.d
         self.failUnlessEqual(a[...], 0)
         self.failUnlessEqual(a[...].shape,())


setUp is clearly broken, but the numpy test suite still runs happily. 
This seems odd.

Eric



More information about the NumPy-Discussion mailing list