diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-01-11 16:33:32 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-01-12 00:20:49 +0200 |
commit | b81e1fdef742675b1e285df80c39159f0bdbf90b (patch) | |
tree | f8e4253aa3f22c56d174130c5a1d5db0bc85448c /py/runtime.c | |
parent | eae16445d5f6ca4bcd693422fc93ccf4fd7e215e (diff) | |
download | micropython-b81e1fdef742675b1e285df80c39159f0bdbf90b.tar.gz micropython-b81e1fdef742675b1e285df80c39159f0bdbf90b.zip |
Add AssertionError.
Diffstat (limited to 'py/runtime.c')
-rw-r--r-- | py/runtime.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/runtime.c b/py/runtime.c index 409d1d8262..44eb79518a 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -90,6 +90,7 @@ void rt_init(void) { mp_map_add_qstr(&map_builtins, MP_QSTR_SyntaxError, mp_obj_new_exception(MP_QSTR_SyntaxError)); mp_map_add_qstr(&map_builtins, MP_QSTR_ValueError, mp_obj_new_exception(MP_QSTR_ValueError)); mp_map_add_qstr(&map_builtins, MP_QSTR_OSError, mp_obj_new_exception(MP_QSTR_OSError)); + mp_map_add_qstr(&map_builtins, MP_QSTR_AssertionError, mp_obj_new_exception(MP_QSTR_AssertionError)); // built-in objects mp_map_add_qstr(&map_builtins, MP_QSTR_Ellipsis, mp_const_ellipsis); |