mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
gh-83035: handle decorator with nested parens in inspect.getsource (#99654)
This commit is contained in:
parent
b11a384dc7
commit
68e41295b8
4 changed files with 22 additions and 9 deletions
|
@ -886,6 +886,12 @@ class TestNoEOL(GetSourceBase):
|
|||
self.assertSourceEqual(self.fodderModule.X, 1, 2)
|
||||
|
||||
|
||||
class TestComplexDecorator(GetSourceBase):
|
||||
fodderModule = mod2
|
||||
|
||||
def test_parens_in_decorator(self):
|
||||
self.assertSourceEqual(self.fodderModule.complex_decorated, 273, 275)
|
||||
|
||||
class _BrokenDataDescriptor(object):
|
||||
"""
|
||||
A broken data descriptor. See bug #1785.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue