def test_regression_broadcast(self) : # regression in __setitem__() : when passed an empty # tuple the value was broadcast to the whole array, # we don't want that coef = np.zeros((3,3), dtype=int) p = MVPolyCube(coef, dtype=int) p[()] = 1 q = MVPolyCube.one(dtype=int) self.assertTrue(p == q, "setitem broadcast regression")