File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ intern_strings(void) {
4646 INTERN_STRING (clear , "clear" );
4747 INTERN_STRING (close_ , "close" );
4848 INTERN_STRING (copy , "copy" );
49+ INTERN_STRING (endswith , "endswith" );
4950 INTERN_STRING (keys , "keys" );
5051 INTERN_STRING (items , "items" );
5152 INTERN_STRING (join , "join" );
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ typedef struct mypyc_interned_str_struct {
3838 PyObject * clear ;
3939 PyObject * close_ ;
4040 PyObject * copy ;
41+ PyObject * endswith ;
4142 PyObject * keys ;
4243 PyObject * items ;
4344 PyObject * join ;
Original file line number Diff line number Diff line change @@ -238,9 +238,9 @@ def test_endswith() -> None:
238238 assert test.endswith(bytearray(b'string'))
239239 assert not test.endswith(bytearray(b'other'))
240240
241- test = bytearray(b'some string')
242- assert test .endswith(b'string')
243- assert not test .endswith(b'other')
241+ test2 = bytearray(b'some string')
242+ assert test2 .endswith(b'string')
243+ assert not test2 .endswith(b'other')
244244
245245[case testBytesSlicing]
246246def test_bytes_slicing() -> None:
You can’t perform that action at this time.
0 commit comments