diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-08 17:48:44 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-08 17:48:44 +0000 |
commit | c33ecb83ba4bc388cd773eec827dc0b85505dce7 (patch) | |
tree | eaeaea4bc4fd868808df84fad55812866b32b6ab /py | |
parent | 5b7aa294e02c792984750546ca118eeb7ba48b59 (diff) | |
download | micropython-c33ecb83ba4bc388cd773eec827dc0b85505dce7.tar.gz micropython-c33ecb83ba4bc388cd773eec827dc0b85505dce7.zip |
tests: Add test for when instance member overrides class member.
Diffstat (limited to 'py')
-rw-r--r-- | py/objtype.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objtype.c b/py/objtype.c index 01a1658236..ec616e355e 100644 --- a/py/objtype.c +++ b/py/objtype.c @@ -457,7 +457,7 @@ STATIC mp_obj_t instance_binary_op(mp_uint_t op, mp_obj_t lhs_in, mp_obj_t rhs_i } void mp_obj_instance_load_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) { - // logic: look in obj members then class locals (TODO check this against CPython) + // logic: look in instance members then class locals assert(is_instance_type(mp_obj_get_type(self_in))); mp_obj_instance_t *self = self_in; |