tests/unix: Add coverage test for mp_obj_new_exception_args.

Because it's no longer called anywhere in the code.
This commit is contained in:
Damien George 2020-01-23 13:18:34 +11:00
parent e2c1226da4
commit 27f41e624c
2 changed files with 4 additions and 0 deletions

View file

@ -387,6 +387,9 @@ STATIC mp_obj_t extra_coverage(void) {
} else {
mp_obj_print_exception(&mp_plat_print, MP_OBJ_FROM_PTR(nlr.ret_val));
}
// call mp_obj_new_exception_args (it's a part of the public C API and not used in the core)
mp_obj_print_exception(&mp_plat_print, mp_obj_new_exception_args(&mp_type_ValueError, 0, NULL));
}
// warning

View file

@ -58,6 +58,7 @@ TypeError: unsupported types for __divmod__: 'str', 'str'
2
OverflowError: overflow converting long int to machine word
OverflowError: overflow converting long int to machine word
ValueError:
Warning: test
# format float
?