mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
Issue #25503: Fixed inspect.getdoc() for inherited docstrings of properties.
Original patch by John Mark Vandenberg.
This commit is contained in:
parent
f8152c67f5
commit
ac4bdcc80e
5 changed files with 19 additions and 9 deletions
|
@ -393,8 +393,8 @@ class TestRetrievingSourceCode(GetSourceBase):
|
|||
|
||||
def test_getsource(self):
|
||||
self.assertSourceEqual(git.abuse, 29, 39)
|
||||
self.assertSourceEqual(mod.StupidGit, 21, 50)
|
||||
self.assertSourceEqual(mod.lobbest, 70, 71)
|
||||
self.assertSourceEqual(mod.StupidGit, 21, 51)
|
||||
self.assertSourceEqual(mod.lobbest, 75, 76)
|
||||
|
||||
def test_getsourcefile(self):
|
||||
self.assertEqual(normcase(inspect.getsourcefile(mod.spam)), modfile)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue