From 6746b441e88102aaf0232341d62e42d978e37269 Mon Sep 17 00:00:00 2001 From: Ankith Date: Tue, 18 Jun 2024 13:19:51 +0530 Subject: [PATCH] Skip test_pixels2d on numpy 2+ for now --- test/surfarray_test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/surfarray_test.py b/test/surfarray_test.py index 0c4d46b288..2288f9b862 100644 --- a/test/surfarray_test.py +++ b/test/surfarray_test.py @@ -12,6 +12,7 @@ all as np_all, rint, arange, + __version__ as np_version, ) import pygame @@ -560,6 +561,11 @@ def test_map_array(self): self._make_array2d(uint8), ) + @unittest.skipIf( + int(np_version.split(".")[0]) >= 2, + "This test fails due to a change in numpy 2.0.0, and a 'proper fix' " + "requires an API/behaviour change", + ) def test_pixels2d(self): sources = [ self._make_surface(8),