Skip to content

Commit 1fdc35e

Browse files
authored
gh-93883: Fix some tests involving traceback formatting (#94737)
PR #93994 was merged without being rebased in a few weeks, and some new test code using the old scheme passed through automatic merge.
1 parent 46fc584 commit 1fdc35e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Lib/test/test_traceback.py

-4
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,6 @@ def f():
740740
f"Traceback (most recent call last):",
741741
f" File \"{__file__}\", line {self.callable_line}, in get_exception",
742742
f" callable()",
743-
f" ^^^^^^^^^^",
744743
f" File \"{__file__}\", line {f.__code__.co_firstlineno + 2}, in f",
745744
f" .method",
746745
f" ^^^^^^",
@@ -757,10 +756,8 @@ def f():
757756
f"Traceback (most recent call last):",
758757
f" File \"{__file__}\", line {self.callable_line}, in get_exception",
759758
f" callable()",
760-
f" ^^^^^^^^^^",
761759
f" File \"{__file__}\", line {f.__code__.co_firstlineno + 2}, in f",
762760
f" method",
763-
f" ^^^^^^",
764761
]
765762
self.assertEqual(actual, expected)
766763

@@ -774,7 +771,6 @@ def f():
774771
f"Traceback (most recent call last):",
775772
f" File \"{__file__}\", line {self.callable_line}, in get_exception",
776773
f" callable()",
777-
f" ^^^^^^^^^^",
778774
f" File \"{__file__}\", line {f.__code__.co_firstlineno + 2}, in f",
779775
f" . method",
780776
f" ^^^^^^",

0 commit comments

Comments
 (0)