diff options
author | Damien George <damien.p.george@gmail.com> | 2017-12-14 12:25:30 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-12-14 12:25:30 +1100 |
commit | 36f79523abe8d79fec1cc7af41e8e96e8ceb2cc4 (patch) | |
tree | a0dff868ffdc95cd973c46e5a1fa9b79aecd00a0 /tests/basics/class_inherit_mul.py | |
parent | badaf3ecfe5d0c8158debf4bd0cb1458016c77f4 (diff) | |
download | micropython-36f79523abe8d79fec1cc7af41e8e96e8ceb2cc4.tar.gz micropython-36f79523abe8d79fec1cc7af41e8e96e8ceb2cc4.zip |
tests: Add tests to improve coverage of py/objtype.c.
Diffstat (limited to 'tests/basics/class_inherit_mul.py')
-rw-r--r-- | tests/basics/class_inherit_mul.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basics/class_inherit_mul.py b/tests/basics/class_inherit_mul.py index 23476132ba..4a43a7f410 100644 --- a/tests/basics/class_inherit_mul.py +++ b/tests/basics/class_inherit_mul.py @@ -1,3 +1,5 @@ +# test multiple inheritance of user classes + class A: def __init__(self, x): print('A init', x) @@ -30,6 +32,9 @@ class Sub(A, B): def g(self): print(self.x) +print(issubclass(Sub, A)) +print(issubclass(Sub, B)) + o = Sub() print(o.x) o.f() |