Jeff Epler 6da8d7c465 Fix assertion failures in mp_obj_new_type
Fixes the following assertion failures when the arguments to type()
were not of valid types:
micropython: ../../py/objtype.c:984: mp_obj_new_type: Assertion `MP_OBJ_IS_TYPE(bases_tuple, &mp_type_tuple)' failed.
micropython: ../../py/objtype.c:994: mp_obj_new_type: Assertion `MP_OBJ_IS_TYPE(items[i], &mp_type_type)' failed.

e.g., when making calls like
    type("", (), 3)
    type("", 3, {})
2018-03-29 06:42:10 -05:00
..
2017-11-02 12:41:50 -07:00
2017-06-20 10:56:05 -07:00
2017-11-02 12:41:50 -07:00
2017-06-20 10:56:05 -07:00
2018-01-02 21:25:41 -05:00
2017-11-02 12:41:50 -07:00
2017-07-18 11:57:39 +10:00
2017-07-18 11:57:39 +10:00
2017-11-02 12:41:50 -07:00
2018-01-24 18:22:20 -08:00
2017-09-01 15:22:25 +10:00
2017-11-02 12:41:50 -07:00
2017-11-01 14:32:06 -07:00
2018-01-24 19:24:36 -05:00
2017-11-02 12:41:50 -07:00