]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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 13:05:37 +0000 (15:05 +0200)
committerGitHub <noreply@github.com>
Thu, 9 May 2024 13:05:37 +0000 (13:05 +0000)
commitc4b853f2a5a4601806f503f1833dce3a4e8d2b58
treee01b6d92f22cdf811929f93d83c4e2110a80809b
parentd86b49411753bf2c83291e3a14ae43fefded2f84
[3.13] gh-103956: Fix `trace` output in case of missing source line (GH-103958) (GH-118834)

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]