mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Patch from Georg Brandl: Fix co_lineno of decorated function and class objects. If you see an error in test_inspect please delete all pyc files.
This commit is contained in:
parent
90c3d9b995
commit
09aaa88328
3 changed files with 9 additions and 1 deletions
|
@ -239,7 +239,7 @@ class TestDecorators(GetSourceBase):
|
|||
fodderFile = mod2
|
||||
|
||||
def test_wrapped_decorator(self):
|
||||
self.assertSourceEqual(mod2.wrapped, 16, 17)
|
||||
self.assertSourceEqual(mod2.wrapped, 14, 17)
|
||||
|
||||
def test_replacing_decorator(self):
|
||||
self.assertSourceEqual(mod2.gone, 9, 10)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue