From f0691f4ed58cab324dee151886ec13cecc1b6771 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 5 Jan 2014 13:44:06 +0000 Subject: Fix qstr in objlist.c; add more tests for list.index. list.index fails on an edge case. --- py/objlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py') diff --git a/py/objlist.c b/py/objlist.c index 7b3b6f177..6c0de405f 100644 --- a/py/objlist.c +++ b/py/objlist.c @@ -194,7 +194,7 @@ static mp_obj_t list_index(int n_args, const mp_obj_t *args) { } } - nlr_jump(mp_obj_new_exception_msg(rt_q_ValueError, "Object not in list.")); + nlr_jump(mp_obj_new_exception_msg(MP_QSTR_ValueError, "object not in list")); } static MP_DEFINE_CONST_FUN_OBJ_2(list_append_obj, mp_obj_list_append); -- cgit v1.2.3