Skip to content

Commit ae9e063

Browse files
author
Antonis
committed
change error type
1 parent 223f035 commit ae9e063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/color_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ def test_from_hex(self):
857857

858858
self.assertRaises(ValueError, lambda: pygame.Color.from_hex("not-a-color"))
859859
self.assertRaises(
860-
ValueError, lambda: pygame.Color.from_hex("not-a-color", "lel")
860+
TypeError, lambda: pygame.Color.from_hex("not-a-color", "lel")
861861
)
862862

863863
def test_normalize(self):

0 commit comments

Comments
 (0)