Skip to content

Commit ca47b50

Browse files
committed
the exception type changed between python versions
1 parent 7591d98 commit ca47b50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_string.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ def test_translate():
897897
assert "abc".translate({ord("a"): ""}) == "bc"
898898
try:
899899
"abc".translate({ord("a"): 8**63})
900-
except ValueError as e:
900+
except (ValueError, TypeError) as e:
901901
assert "mapping must be in range" in str(e)
902902
else:
903903
assert False, "should raise"

0 commit comments

Comments
 (0)