Skip to content

Commit

Permalink
pythongh-93883: Fix some tests involving traceback formatting (python…
Browse files Browse the repository at this point in the history
…#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)
  • Loading branch information
belm0 committed Jul 11, 2022
1 parent b2f98c3 commit 915d03e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Lib/test/test_traceback.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,6 @@ def f():
f"Traceback (most recent call last):",
f" File \"{__file__}\", line {self.callable_line}, in get_exception",
f" callable()",
f" ^^^^^^^^^^",
f" File \"{__file__}\", line {f.__code__.co_firstlineno + 2}, in f",
f" .method",
f" ^^^^^^",
Expand All @@ -758,10 +757,8 @@ def f():
f"Traceback (most recent call last):",
f" File \"{__file__}\", line {self.callable_line}, in get_exception",
f" callable()",
f" ^^^^^^^^^^",
f" File \"{__file__}\", line {f.__code__.co_firstlineno + 2}, in f",
f" method",
f" ^^^^^^",
]
self.assertEqual(actual, expected)

Expand All @@ -775,7 +772,6 @@ def f():
f"Traceback (most recent call last):",
f" File \"{__file__}\", line {self.callable_line}, in get_exception",
f" callable()",
f" ^^^^^^^^^^",
f" File \"{__file__}\", line {f.__code__.co_firstlineno + 2}, in f",
f" . method",
f" ^^^^^^",
Expand Down

0 comments on commit 915d03e

Please sign in to comment.