Skip to content

Commit

Permalink
Skip test_pixels2d on numpy 2+ for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ankith26 committed Jun 18, 2024
1 parent 98cbad1 commit 6746b44
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/surfarray_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
all as np_all,
rint,
arange,
__version__ as np_version,
)

import pygame
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 6746b44

Please sign in to comment.