File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -402,6 +402,8 @@ def test_isroutine(self):
402402 self .assertFalse (inspect .isroutine (type ))
403403 self .assertFalse (inspect .isroutine (int ))
404404 self .assertFalse (inspect .isroutine (type ('some_class' , (), {})))
405+ # partial
406+ self .assertTrue (inspect .isroutine (functools .partial (mod .spam )))
405407
406408 def test_isclass (self ):
407409 self .istest (inspect .isclass , 'mod.StupidGit' )
@@ -1693,6 +1695,7 @@ def function():
16931695 self .assertFalse (inspect .ismethoddescriptor (Owner .static_method ))
16941696 self .assertFalse (inspect .ismethoddescriptor (function ))
16951697 self .assertFalse (inspect .ismethoddescriptor (a_lambda ))
1698+ self .assertTrue (inspect .ismethoddescriptor (functools .partial (function )))
16961699
16971700 def test_descriptor_being_a_class (self ):
16981701 class MethodDescriptorMeta (type ):
You can’t perform that action at this time.
0 commit comments