File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2011,13 +2011,13 @@ def test_callable_instance_type_error(self):
2011
2011
def f ():
2012
2012
pass
2013
2013
with self .assertRaises (TypeError ):
2014
- self . assertIsInstance (f , Callable [[], None ])
2014
+ isinstance (f , Callable [[], None ])
2015
2015
with self .assertRaises (TypeError ):
2016
- self . assertIsInstance (f , Callable [[], Any ])
2016
+ isinstance (f , Callable [[], Any ])
2017
2017
with self .assertRaises (TypeError ):
2018
- self . assertNotIsInstance (None , Callable [[], None ])
2018
+ isinstance (None , Callable [[], None ])
2019
2019
with self .assertRaises (TypeError ):
2020
- self . assertNotIsInstance (None , Callable [[], Any ])
2020
+ isinstance (None , Callable [[], Any ])
2021
2021
2022
2022
def test_repr (self ):
2023
2023
Callable = self .Callable
You can’t perform that action at this time.
0 commit comments