Commit 998d960a authored by Vincent POLLET's avatar Vincent POLLET

[CI] Print which assertion is failing in test_stream

parent bc25a287
Pipeline #43988 passed with stage
in 6 minutes and 56 seconds
......@@ -130,9 +130,9 @@ def test_stream():
for index in test_indices:
gt_slice = data_a[index]
s_slice = stream_a[index]
assert s_slice.shape == gt_slice.shape, "index " + str(index) + " assertation failed."
assert s_slice.ndim == gt_slice.ndim, "index " + str(index) + " assertation failed."
assert np.array_equal(s_slice.load(), gt_slice), "index " + str(index) + " assertation failed."
assert s_slice.shape == gt_slice.shape, "index " + str(index) + " shape assertation failed."
assert s_slice.ndim == gt_slice.ndim, "index " + str(index) + " ndim assertation failed."
assert np.array_equal(s_slice.load(), gt_slice), "index " + str(index) + " equality assertation failed."
os.remove(resource_path("test/data/stream_test.h5"))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment