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):
33
33
self .assertNotEqual (id (a ), id (b ))
34
34
self .assertEqual (a , b )
35
35
36
- # TODO: RUSTPYTHON
37
- @unittest .expectedFailure
38
36
def test_getitem_error (self ):
39
37
a = []
40
38
msg = "list indices must be integers or slices"
Original file line number Diff line number Diff line change 18
18
class TupleTest (seq_tests .CommonTest ):
19
19
type2test = tuple
20
20
21
- # TODO: RUSTPYTHON
22
- @unittest .expectedFailure
23
21
def test_getitem_error (self ):
24
22
t = ()
25
23
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(
252
252
}
253
253
} else {
254
254
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
257
257
) ) )
258
258
}
259
259
}
You can’t perform that action at this time.
0 commit comments