We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8f79d1 commit d0b8e73Copy full SHA for d0b8e73
test/surfarray_test.py
@@ -115,10 +115,10 @@ def _make_array3d(self, dtype):
115
116
def _fill_array2d(self, arr, surf):
117
palette = self.test_palette
118
- arr[:5, :6] = array(surf.map_rgb(palette[1])).astype(int)
119
- arr[5:, :6] = array(surf.map_rgb(palette[2])).astype(int)
120
- arr[:5, 6:] = array(surf.map_rgb(palette[3])).astype(int)
121
- arr[5:, 6:] = array(surf.map_rgb(palette[4])).astype(int)
+ arr[:5, :6] = surf.map_rgb(palette[1])
+ arr[5:, :6] = surf.map_rgb(palette[2])
+ arr[:5, 6:] = surf.map_rgb(palette[3])
+ arr[5:, 6:] = surf.map_rgb(palette[4])
122
123
def _fill_array3d(self, arr):
124
0 commit comments