]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-103956: Fix `trace` output in case of missing source line (GH-103958) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 9 May 2024 12:51:03 +0000 (14:51 +0200)
committerGitHub <noreply@github.com>
Thu, 9 May 2024 12:51:03 +0000 (12:51 +0000)
commit0d626760a436de3725e65619d68f1f4890a57b12
treecbe491b9ef759bb71b80cae3706208039ff8fa74
parente9539568be8870ef5ab3908b483eec08a3df4820
[3.12] gh-103956: Fix `trace` output in case of missing source line (GH-103958) (GH-118832)

Print only filename with lineno if linecache.getline() returns an empty string.
(cherry picked from commit 7c87ce777b3fd9055b118a58ec8614901ecb45e9)

Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
Lib/test/test_trace.py
Lib/trace.py
Misc/NEWS.d/next/Library/2023-04-28-09-54-15.gh-issue-103956.EyLDPS.rst [new file with mode: 0644]