mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-101517: fix line number propagation in code generated for except* (#103550)
This commit is contained in:
parent
518050ced1
commit
1c01f8d797
5 changed files with 27 additions and 15 deletions
|
@ -1207,7 +1207,8 @@ class IssuesTestCase(BaseTestCase):
|
|||
class TestRegressions(unittest.TestCase):
|
||||
def test_format_stack_entry_no_lineno(self):
|
||||
# See gh-101517
|
||||
Bdb().format_stack_entry((sys._getframe(), None))
|
||||
self.assertIn('Warning: lineno is None',
|
||||
Bdb().format_stack_entry((sys._getframe(), None)))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue