mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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.
This commit is contained in:
parent
46fc584b00
commit
1fdc35ef51
1 changed files with 0 additions and 4 deletions
|
@ -740,7 +740,6 @@ class TracebackErrorLocationCaretTests(unittest.TestCase):
|
|||
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" ^^^^^^",
|
||||
|
@ -757,10 +756,8 @@ class TracebackErrorLocationCaretTests(unittest.TestCase):
|
|||
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)
|
||||
|
||||
|
@ -774,7 +771,6 @@ class TracebackErrorLocationCaretTests(unittest.TestCase):
|
|||
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" ^^^^^^",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue