mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Merge 3.5 (Issue #24669)
This commit is contained in:
commit
8d603f1796
4 changed files with 8 additions and 1 deletions
|
@ -66,3 +66,6 @@ class FesteringGob(MalodorousPervert, ParrotDroppings):
|
|||
pass
|
||||
def contradiction(self):
|
||||
pass
|
||||
|
||||
async def lobbest(grenade):
|
||||
pass
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue