|
19 | 19 | #include "py/stream.h"
|
20 | 20 | #include "py/binary.h"
|
21 | 21 | #include "py/bc.h"
|
22 |
| -#include "py/lexer.h" |
23 |
| -#include "py/parse.h" |
24 |
| -#include "py/compile.h" |
25 |
| -#include "py/misc.h" |
26 | 22 |
|
27 | 23 | // expected output of this file is found in extra_coverage.py.exp
|
28 | 24 |
|
@@ -200,7 +196,6 @@ static void coverage_sched_function(mp_sched_node_t *node) {
|
200 | 196 | }
|
201 | 197 | }
|
202 | 198 |
|
203 |
| - |
204 | 199 | // function to run extra tests for things that can't be checked by scripts
|
205 | 200 | static mp_obj_t extra_coverage(void) {
|
206 | 201 | // mp_printf (used by ports that don't have a native printf)
|
@@ -907,30 +902,6 @@ static mp_obj_t extra_coverage(void) {
|
907 | 902 | MICROPY_STACK_CHECK == 0 || old_stack_limit == new_stack_limit);
|
908 | 903 | }
|
909 | 904 |
|
910 |
| - { |
911 |
| - mp_printf(&mp_plat_print, "# objstr subscript assignment\n"); |
912 |
| - |
913 |
| - mp_obj_t bytes_obj = mp_obj_new_bytes((const byte *)"hello", 5); |
914 |
| - const mp_obj_type_t *type = mp_obj_get_type(bytes_obj); |
915 |
| - if (MP_OBJ_TYPE_HAS_SLOT(type, subscr)) { |
916 |
| - mp_obj_t result = MP_OBJ_TYPE_GET_SLOT(type, subscr)(bytes_obj, MP_OBJ_NEW_SMALL_INT(0), MP_OBJ_NEW_SMALL_INT(120)); |
917 |
| - if (result == MP_OBJ_NULL) { |
918 |
| - mp_printf(&mp_plat_print, "Bytes subscript assignment not supported\n"); |
919 |
| - } |
920 |
| - } |
921 |
| - |
922 |
| - #if !MICROPY_PY_BUILTINS_STR_UNICODE |
923 |
| - mp_obj_t str_obj = mp_obj_new_str_from_cstr("hello"); |
924 |
| - type = mp_obj_get_type(str_obj); |
925 |
| - if (MP_OBJ_TYPE_HAS_SLOT(type, subscr)) { |
926 |
| - mp_obj_t result = MP_OBJ_TYPE_GET_SLOT(type, subscr)(str_obj, MP_OBJ_NEW_SMALL_INT(0), MP_OBJ_NEW_QSTR(MP_QSTR_a)); |
927 |
| - if (result == MP_OBJ_NULL) { |
928 |
| - mp_printf(&mp_plat_print, "String subscript assignment not supported\n"); |
929 |
| - } |
930 |
| - } |
931 |
| - #endif |
932 |
| - } |
933 |
| - |
934 | 905 | mp_printf(&mp_plat_print, "# end coverage.c\n");
|
935 | 906 |
|
936 | 907 | mp_obj_streamtest_t *s = mp_obj_malloc(mp_obj_streamtest_t, &mp_type_stest_fileio);
|
|
0 commit comments