mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-101517: make bdb avoid looking up in linecache with lineno=None (#101787)
This commit is contained in:
parent
5d15224011
commit
366b949058
3 changed files with 11 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue