Skip to content

Commit

Permalink
Correct ranges for rgba color values
Browse files Browse the repository at this point in the history
  • Loading branch information
nocarryr committed Mar 5, 2021
1 parent 607d787 commit 245d2c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def test_const_args():
assert 'Cannot pack empty argument' in str(excinfo.value)

def test_color_args():
for r, g, b, a in zip(range(255), range(255), range(255), range(255)):
for r, g, b, a in zip(range(256), range(256), range(256), range(256)):
color = ColorRGBA(r=r, g=g, b=b, a=a)
cls = arguments.Argument.get_argument_for_value(color)
assert cls is arguments.RGBArgument
Expand Down

0 comments on commit 245d2c9

Please sign in to comment.