def test_no_side_effects(self): """ Test that no arrays in the stream are modified """ for arr in self.source: arr.setflags(write = False) out = last(ireduce_ufunc(self.source, np.add))