summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bdb.py
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-02-10 16:49:29 (GMT)
committerGitHub <noreply@github.com>2023-02-10 16:49:29 (GMT)
commit366b94905869d680b3f1d4801fb497e78811e511 (patch)
treebec97cee43bbb92592e8743aad57cd3afafa88c7 /Lib/test/test_bdb.py
parent5d15224011217487e1a174c144af0e5f5826c17c (diff)
downloadcpython-366b94905869d680b3f1d4801fb497e78811e511.zip
cpython-366b94905869d680b3f1d4801fb497e78811e511.tar.gz
cpython-366b94905869d680b3f1d4801fb497e78811e511.tar.bz2
gh-101517: make bdb avoid looking up in linecache with lineno=None (#101787)
Diffstat (limited to 'Lib/test/test_bdb.py')
-rw-r--r--Lib/test/test_bdb.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_bdb.py b/Lib/test/test_bdb.py
index 87a5ac3..042c2da 100644
--- a/Lib/test/test_bdb.py
+++ b/Lib/test/test_bdb.py
@@ -1203,5 +1203,11 @@ class IssuesTestCase(BaseTestCase):
tracer.runcall(tfunc_import)
+class TestRegressions(unittest.TestCase):
+ def test_format_stack_entry_no_lineno(self):
+ # See gh-101517
+ Bdb().format_stack_entry((sys._getframe(), None))
+
+
if __name__ == "__main__":
unittest.main()