We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7591d98 commit ca47b50Copy full SHA for ca47b50
graalpython/com.oracle.graal.python.test/src/tests/test_string.py
@@ -897,7 +897,7 @@ def test_translate():
897
assert "abc".translate({ord("a"): ""}) == "bc"
898
try:
899
"abc".translate({ord("a"): 8**63})
900
- except ValueError as e:
+ except (ValueError, TypeError) as e:
901
assert "mapping must be in range" in str(e)
902
else:
903
assert False, "should raise"
0 commit comments