mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
This commit is contained in:
parent
4887523c03
commit
4f4913b38b
4 changed files with 14 additions and 22 deletions
|
|
@ -464,6 +464,7 @@ class TestDecorators(GetSourceBase):
|
|||
def test_getsource_unwrap(self):
|
||||
self.assertSourceEqual(mod2.real, 130, 132)
|
||||
|
||||
@unittest.expectedFailure
|
||||
def test_decorator_with_lambda(self):
|
||||
self.assertSourceEqual(mod2.func114, 113, 115)
|
||||
|
||||
|
|
@ -563,6 +564,10 @@ class TestBuggyCases(GetSourceBase):
|
|||
def test_getsource_on_method(self):
|
||||
self.assertSourceEqual(mod2.ClassWithMethod.method, 118, 119)
|
||||
|
||||
def test_nested_func(self):
|
||||
self.assertSourceEqual(mod2.cls135.func136, 136, 139)
|
||||
|
||||
|
||||
class TestNoEOL(GetSourceBase):
|
||||
def setUp(self):
|
||||
self.tempdir = TESTFN + '_dir'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue