File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 4343assert len (c ) == 3
4444c .pop ()
4545assert len (c ) == 2
46+ c .pop ()
47+ c .pop ()
48+
49+ try :
50+ c .pop ()
51+ except IndexError :
52+ pass
53+ else :
54+ assert False
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ pub fn get_value<'a>(obj: &'a PyObjectRef) -> impl Deref<Target = Vec<u8>> + 'a
185185 if let PyObjectPayload :: Bytes { ref value } = py_obj. payload {
186186 value
187187 } else {
188- panic ! ( "Inner error getting int {:?}" , obj) ;
188+ panic ! ( "Inner error getting bytearray {:?}" , obj) ;
189189 }
190190 } )
191191}
@@ -195,7 +195,7 @@ pub fn get_mut_value<'a>(obj: &'a PyObjectRef) -> impl DerefMut<Target = Vec<u8>
195195 if let PyObjectPayload :: Bytes { ref mut value } = py_obj. payload {
196196 value
197197 } else {
198- panic ! ( "Inner error getting int {:?}" , obj) ;
198+ panic ! ( "Inner error getting bytearray {:?}" , obj) ;
199199 }
200200 } )
201201}
You can’t perform that action at this time.
0 commit comments