Skip to content

Commit b9a1106

Browse files
committed
Update tests
Exc values for ZeroDivisionError 1 // 0 changed in py314...
1 parent fedf18d commit b9a1106

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_tracebacks.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ def test_exception_groups() -> None:
579579
lineno = get_next_lineno()
580580

581581
async def t1() -> None:
582-
1 // 0
582+
1 / 0
583583

584584
async def t2() -> None:
585585
raise ValueError("Blam!")
@@ -605,7 +605,7 @@ async def main():
605605
stacks=[
606606
tracebacks.Stack(
607607
exc_type="ZeroDivisionError",
608-
exc_value="integer division or modulo by zero",
608+
exc_value="division by zero",
609609
exc_notes=[],
610610
syntax_error=None,
611611
is_cause=False,
@@ -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+
1 / 0
945945

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

0 commit comments

Comments
 (0)