From 36f79523abe8d79fec1cc7af41e8e96e8ceb2cc4 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 14 Dec 2017 12:25:30 +1100 Subject: tests: Add tests to improve coverage of py/objtype.c. --- tests/basics/class_super_multinherit.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/basics/class_super_multinherit.py (limited to 'tests/basics/class_super_multinherit.py') diff --git a/tests/basics/class_super_multinherit.py b/tests/basics/class_super_multinherit.py new file mode 100644 index 000000000..642a73ce1 --- /dev/null +++ b/tests/basics/class_super_multinherit.py @@ -0,0 +1,16 @@ +# test super with multiple inheritance + +class A: + def foo(self): + print('A.foo') + +class B: + def foo(self): + print('B.foo') + +class C(A, B): + def foo(self): + print('C.foo') + super().foo() + +C().foo() -- cgit v1.2.3