From 232fec48c352bbcc1a9eba784f3412ebef18960e Mon Sep 17 00:00:00 2001 From: Dowon Date: Tue, 9 Apr 2024 21:05:57 +0900 Subject: [PATCH] test: fix numpy dtype --- tests/test_mask.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/test_mask.py b/tests/test_mask.py index 5d4dd20..37191fd 100644 --- a/tests/test_mask.py +++ b/tests/test_mask.py @@ -112,7 +112,8 @@ class TestHasIntersection: [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], - ] + ], + dtype=np.uint8, ) arr2 = arr1.copy() assert not has_intersection(arr1, arr2) @@ -124,7 +125,8 @@ class TestHasIntersection: [0, 255, 255, 0], [0, 255, 255, 0], [0, 0, 0, 0], - ] + ], + dtype=np.uint8, ) arr2 = np.array( [ @@ -132,7 +134,8 @@ class TestHasIntersection: [0, 0, 0, 0], [0, 0, 255, 255], [0, 0, 255, 255], - ] + ], + dtype=np.uint8, ) assert has_intersection(arr1, arr2) @@ -142,7 +145,8 @@ class TestHasIntersection: [0, 0, 0, 0], [0, 0, 0, 255], [0, 0, 255, 255], - ] + ], + dtype=np.uint8, ) assert not has_intersection(arr1, arr3)