summaryrefslogtreecommitdiffstats
path: root/Lib/test/inspect_fodder.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-04-03 19:38:53 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-04-03 19:38:53 (GMT)
commit5cf2b7253dc43b203c2f918416b4d25ad1dbfa7d (patch)
treec12664299b2f9e54eddf21cd3403fcb2daa7fa7f /Lib/test/inspect_fodder.py
parent41525e31a5a40c1c20a5115aed9609f49c60b43a (diff)
downloadcpython-5cf2b7253dc43b203c2f918416b4d25ad1dbfa7d.zip
cpython-5cf2b7253dc43b203c2f918416b4d25ad1dbfa7d.tar.gz
cpython-5cf2b7253dc43b203c2f918416b4d25ad1dbfa7d.tar.bz2
Issue #15582: inspect.getdoc() now follows inheritance chains.
Diffstat (limited to 'Lib/test/inspect_fodder.py')
-rw-r--r--Lib/test/inspect_fodder.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/Lib/test/inspect_fodder.py b/Lib/test/inspect_fodder.py
index 0c1d810..6f0cad9 100644
--- a/Lib/test/inspect_fodder.py
+++ b/Lib/test/inspect_fodder.py
@@ -45,9 +45,16 @@ class StupidGit:
self.ex = sys.exc_info()
self.tr = inspect.trace()
+ def contradiction(self):
+ 'The automatic gainsaying.'
+ pass
+
# line 48
class MalodorousPervert(StupidGit):
- pass
+ def abuse(self, a, b, c):
+ pass
+ def contradiction(self):
+ pass
Tit = MalodorousPervert
@@ -55,4 +62,7 @@ class ParrotDroppings:
pass
class FesteringGob(MalodorousPervert, ParrotDroppings):
- pass
+ def abuse(self, a, b, c):
+ pass
+ def contradiction(self):
+ pass