Skip to content

Commit 2d12914

Browse files
committed
update tests to look for a ValueError instead of KeyError
Signed-off-by: Zen <[email protected]>
1 parent 87ce98b commit 2d12914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_colorize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def test_white(self):
4848

4949

5050
def test_invalid_color(self):
51-
with self.assertRaises(KeyError):
51+
with self.assertRaises(ValueError):
5252
colorize("test", "invalid_color")
5353

5454

0 commit comments

Comments
 (0)