From fab634e3eeb456e9d5dffa2cabb9ded39c45d6b6 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Mon, 3 Jul 2017 15:05:08 -0700 Subject: Turn on Rosie CI testing to test new builds on real hardware. This introduces a skip_if module that can be used by tests to determine when they should be skipped due to the environment. Some tests have been split in order to have finer grained skip control. --- lib/utils/pyexec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/utils/pyexec.c b/lib/utils/pyexec.c index 31a97deaf..fc04e3f9f 100644 --- a/lib/utils/pyexec.c +++ b/lib/utils/pyexec.c @@ -136,7 +136,9 @@ STATIC int parse_compile_execute(const void *source, mp_parse_input_kind_t input if (mp_obj_is_exception_instance(return_value)) { size_t n, *values; mp_obj_exception_get_traceback(return_value, &n, &values); - result->exception_line = values[n - 2]; + if (values != NULL) { + result->exception_line = values[n - 2]; + } } } } -- cgit v1.2.3