File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ def test_init(self):
3232 self .assertEqual (a , b )
3333
3434 def test_getitem_error (self ):
35- a = []
35+ a = self . type2test ([])
3636 msg = "list indices must be integers or slices"
3737 with self .assertRaisesRegex (TypeError , msg ):
3838 a ['a' ]
3939
4040 def test_setitem_error (self ):
41- a = []
41+ a = self . type2test ([])
4242 msg = "list indices must be integers or slices"
4343 with self .assertRaisesRegex (TypeError , msg ):
4444 a ['a' ] = "python"
@@ -561,7 +561,7 @@ def test_constructor_exception_handling(self):
561561 class F (object ):
562562 def __iter__ (self ):
563563 raise KeyboardInterrupt
564- self .assertRaises (KeyboardInterrupt , list , F ())
564+ self .assertRaises (KeyboardInterrupt , self . type2test , F ())
565565
566566 def test_exhausted_iterator (self ):
567567 a = self .type2test ([1 , 2 , 3 ])
You can’t perform that action at this time.
0 commit comments