summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-07-21 19:04:22 +0300
committerYury Selivanov <yselivanov@sprymix.com>2015-07-21 19:04:22 +0300
commit8d603f179682baee02684af6eff2f0d8cff6ad9c (patch)
tree723a5db36ae9abeaae9005c1a6a9fef15022f73a /Lib/test
parentad1a34197e0d4b890776b8490853d6b9ee38934a (diff)
parente4e811d65b51478392a7c69e83b38c6930012eb7 (diff)
downloadcpython-git-8d603f179682baee02684af6eff2f0d8cff6ad9c.tar.gz
Merge 3.5 (Issue #24669)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/inspect_fodder.py3
-rw-r--r--Lib/test/test_inspect.py2
2 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/inspect_fodder.py b/Lib/test/inspect_fodder.py
index 6f0cad942d..068d8258b9 100644
--- a/Lib/test/inspect_fodder.py
+++ b/Lib/test/inspect_fodder.py
@@ -66,3 +66,6 @@ class FesteringGob(MalodorousPervert, ParrotDroppings):
pass
def contradiction(self):
pass
+
+async def lobbest(grenade):
+ pass
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py
index 8e0e73cf00..e6208935a7 100644
--- a/Lib/test/test_inspect.py
+++ b/Lib/test/test_inspect.py
@@ -336,6 +336,7 @@ class TestRetrievingSourceCode(GetSourceBase):
def test_getfunctions(self):
functions = inspect.getmembers(mod, inspect.isfunction)
self.assertEqual(functions, [('eggs', mod.eggs),
+ ('lobbest', mod.lobbest),
('spam', mod.spam)])
@unittest.skipIf(sys.flags.optimize >= 2,
@@ -393,6 +394,7 @@ 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)
def test_getsourcefile(self):
self.assertEqual(normcase(inspect.getsourcefile(mod.spam)), modfile)