File tree Expand file tree Collapse file tree 3 files changed +2
-6
lines changed
Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,6 @@ def test_init(self):
3333 self .assertNotEqual (id (a ), id (b ))
3434 self .assertEqual (a , b )
3535
36- # TODO: RUSTPYTHON
37- @unittest .expectedFailure
3836 def test_getitem_error (self ):
3937 a = []
4038 msg = "list indices must be integers or slices"
Original file line number Diff line number Diff line change 1818class TupleTest (seq_tests .CommonTest ):
1919 type2test = tuple
2020
21- # TODO: RUSTPYTHON
22- @unittest .expectedFailure
2321 def test_getitem_error (self ):
2422 t = ()
2523 msg = "tuple indices must be integers or slices"
Original file line number Diff line number Diff line change @@ -252,8 +252,8 @@ pub fn get_item(
252252 }
253253 } else {
254254 Err ( vm. new_type_error ( format ! (
255- "indexing type {:?} with index {:?} is not supported (yet?) " ,
256- sequence, subscript
255+ "{} indices must be integers or slices " ,
256+ sequence. lease_class ( ) . name
257257 ) ) )
258258 }
259259}
You can’t perform that action at this time.
0 commit comments