Skip to content

Commit 5cb2d2a

Browse files
committed
Update tests
Exc values for ZeroDivisionError changed in py314...
1 parent fedf18d commit 5cb2d2a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_tracebacks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ def test_json_exception_groups() -> None:
941941
lineno = get_next_lineno()
942942

943943
async def t1() -> None:
944-
1 // 0
944+
raise TypeError("bleh")
945945

946946
async def t2() -> None:
947947
raise ValueError("Blam!")
@@ -962,8 +962,8 @@ async def main():
962962
assert [
963963
[
964964
{
965-
"exc_type": "ZeroDivisionError",
966-
"exc_value": "integer division or modulo by zero",
965+
"exc_type": "TypeError",
966+
"exc_value": "bleh",
967967
"exc_notes": [],
968968
"syntax_error": None,
969969
"is_cause": False,

0 commit comments

Comments
 (0)