diff options
author | John Belmonte <john@neggie.net> | 2022-07-11 09:22:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-11 09:22:41 (GMT) |
commit | 1fdc35ef519855e1b69addf43af74f3ac7f37a6f (patch) | |
tree | 0691a42ce9b3724a02b3b5df7b9c6c366b2ee884 | |
parent | 46fc584b00f2ccee5b77d8fc525881def8670a02 (diff) | |
download | cpython-1fdc35ef519855e1b69addf43af74f3ac7f37a6f.zip cpython-1fdc35ef519855e1b69addf43af74f3ac7f37a6f.tar.gz cpython-1fdc35ef519855e1b69addf43af74f3ac7f37a6f.tar.bz2 |
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.
-rw-r--r-- | Lib/test/test_traceback.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/test/test_traceback.py b/Lib/test/test_traceback.py index 602bd2c..ef08b29 100644 --- a/Lib/test/test_traceback.py +++ b/Lib/test/test_traceback.py @@ -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" ^^^^^^", |