Skip to content

Commit 915d03e

Browse files
committed
pythongh-93883: Fix some tests involving traceback formatting (python#94737)
PR python#93994 was merged without being rebased in a few weeks, and some new test code using the old scheme passed through automatic merge. (cherry picked from commit 1fdc35e)
1 parent b2f98c3 commit 915d03e

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

Lib/test/test_traceback.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,6 @@ def f():
741741
f"Traceback (most recent call last):",
742742
f" File \"{__file__}\", line {self.callable_line}, in get_exception",
743743
f" callable()",
744-
f" ^^^^^^^^^^",
745744
f" File \"{__file__}\", line {f.__code__.co_firstlineno + 2}, in f",
746745
f" .method",
747746
f" ^^^^^^",
@@ -758,10 +757,8 @@ def f():
758757
f"Traceback (most recent call last):",
759758
f" File \"{__file__}\", line {self.callable_line}, in get_exception",
760759
f" callable()",
761-
f" ^^^^^^^^^^",
762760
f" File \"{__file__}\", line {f.__code__.co_firstlineno + 2}, in f",
763761
f" method",
764-
f" ^^^^^^",
765762
]
766763
self.assertEqual(actual, expected)
767764

@@ -775,7 +772,6 @@ def f():
775772
f"Traceback (most recent call last):",
776773
f" File \"{__file__}\", line {self.callable_line}, in get_exception",
777774
f" callable()",
778-
f" ^^^^^^^^^^",
779775
f" File \"{__file__}\", line {f.__code__.co_firstlineno + 2}, in f",
780776
f" . method",
781777
f" ^^^^^^",

0 commit comments

Comments
 (0)