File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 1818'''
1919
2020
21- class OldCallable :
22- def __call__ (self ):
23- pass
24-
25-
2621class Callable :
2722 def __call__ (self ):
2823 pass
2924
3025
31- class OldNoncallable :
32- pass
33-
34-
3526class Noncallable :
3627 pass
3728
@@ -50,10 +41,7 @@ def test_is_callable(self):
5041 self .assertTrue (inspection .is_callable (spam ))
5142 self .assertTrue (inspection .is_callable (Callable ))
5243 self .assertTrue (inspection .is_callable (Callable ()))
53- self .assertTrue (inspection .is_callable (OldCallable ))
54- self .assertTrue (inspection .is_callable (OldCallable ()))
5544 self .assertFalse (inspection .is_callable (Noncallable ()))
56- self .assertFalse (inspection .is_callable (OldNoncallable ()))
5745 self .assertFalse (inspection .is_callable (None ))
5846 self .assertTrue (inspection .is_callable (CallableMethod ().method ))
5947
You can’t perform that action at this time.
0 commit comments