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 @@ -52,6 +52,7 @@ intern_strings(void) {
5252 INTERN_STRING (close_ , "close" );
5353 INTERN_STRING (copy , "copy" );
5454 INTERN_STRING (dispatch_cache , "dispatch_cache" );
55+ INTERN_STRING (endswith , "endswith" );
5556 INTERN_STRING (get_type_hints , "get_type_hints" );
5657 INTERN_STRING (keys , "keys" );
5758 INTERN_STRING (items , "items" );
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ typedef struct mypyc_interned_str_struct {
4444 PyObject * close_ ;
4545 PyObject * copy ;
4646 PyObject * dispatch_cache ;
47+ PyObject * endswith ;
4748 PyObject * get_type_hints ;
4849 PyObject * keys ;
4950 PyObject * items ;
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