Skip to content

Commit

Permalink
test_color_generator() now runs on numpy versions <=1.25.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyTeichman committed Oct 8, 2023
1 parent f019b07 commit 2f46326
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def test_color_generator():
'lawngreen', 'moccasin', 'thistle']
for i in range(150):
color = next(gen)
assert color in preset_colors or (isinstance(color, np.ndarray) and len(color) == 3 and
assert (isinstance(color, str) and color in preset_colors) or (
isinstance(color, np.ndarray) and len(color) == 3 and
np.max(color) <= 1 and np.min(color) >= 0)


Expand Down

0 comments on commit 2f46326

Please sign in to comment.