diff --git a/examples/mio_sram_test/tests/test_Sim.py b/examples/mio_sram_test/tests/test_Sim.py index 8a0eaf3d..6f0cc2f5 100644 --- a/examples/mio_sram_test/tests/test_Sim.py +++ b/examples/mio_sram_test/tests/test_Sim.py @@ -143,7 +143,7 @@ def test_overflow(self): self.chip['PULSE'].start() ret = self.chip['FIFO'].get_data() - x = np.arange((128 + 1023) * 4, (128 + 1023 + 1) * 4, dtype=np.uint8) + x = np.arange((128 + 1023) * 4, (128 + 1023 + 1) * 4).astype(np.uint8) x.dtype = np.uint32 np.testing.assert_array_equal(ret, x) @@ -197,12 +197,12 @@ def test_continouse(self): for _ in range(100): ret = self.chip['FIFO'].get_data() - x = np.arange(i * 4, (i + ret.shape[0]) * 4, dtype=np.uint8) + x = np.arange(i * 4, (i + ret.shape[0]) * 4).astype(np.uint8) x.dtype = np.uint32 i += ret.shape[0] - ok = np.alltrue(ret == x) + ok = np.all(ret == x) # print 'OK?', ok, ret.shape[0], i, k if not ok: error = True