Skip to content

Commit

Permalink
increase number of arguments to raise TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed Feb 5, 2020
1 parent eb6f3fd commit 55396ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def assert_rgba(c, r, g, b, a):
assert_rgba(utils.to_qcolor((34/255., 58/255., 129/255., 0.45)), 34, 58, 129, 114)

# wrong number of arguments
for obj in [(1, 2), (1, 2, 3, 4, 5)]:
for obj in [(1, 2), (1, 2, 3, 4, 5, 6, 7)]:
with pytest.raises(TypeError):
utils.to_qcolor(obj)

Expand Down

0 comments on commit 55396ef

Please sign in to comment.