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

Eric Firing efiring@hawaii....
Thu Apr 17 13:16:15 CDT 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