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
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion