diff options
| author | Damien George <damien.p.george@gmail.com> | 2017-01-27 12:35:46 +1100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2017-01-27 12:35:46 +1100 |
| commit | f1db8a3097f74aa5499c95a2625bd0bfa285579a (patch) | |
| tree | e96490bec7ca5f47fccc2d4c0255243b985ad0a8 /qemu-arm | |
| parent | cc4c1adf6e05dcda54393fe512e47463fc45414e (diff) | |
qemu-arm: Don't compile tests in "REPL" mode.
Previous to this patch the qemu-arm tests were compiled with is_relp=true
meaning that the __repl_print__ function was called for all lines of code
in the outer scope. This is not the right behaviour for scripts that are
executed as though they were a file (eg tests).
With this fix the micropython/heapalloc_str.py test now works so it is
removed from the test blacklist.
Diffstat (limited to 'qemu-arm')
| -rw-r--r-- | qemu-arm/test_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-arm/test_main.c b/qemu-arm/test_main.c index ae2beabcd..5c0c915c4 100644 --- a/qemu-arm/test_main.c +++ b/qemu-arm/test_main.c @@ -32,7 +32,7 @@ inline void do_str(const char *src) { if (nlr_push(&nlr) == 0) { qstr source_name = lex->source_name; mp_parse_tree_t parse_tree = mp_parse(lex, MP_PARSE_FILE_INPUT); - mp_obj_t module_fun = mp_compile(&parse_tree, source_name, MP_EMIT_OPT_NONE, true); + mp_obj_t module_fun = mp_compile(&parse_tree, source_name, MP_EMIT_OPT_NONE, false); mp_call_function_0(module_fun); nlr_pop(); } else { |
