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

Eric Firing efiring@hawaii....
Thu Apr 17 13:21:04 CDT 2008


Arg!  Cancel that!  I didn't look carefully enough.  How embarrassing! 
Sorry for the noise.

Eric

Eric Firing wrote:
> 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
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion



More information about the Numpy-discussion mailing list