()
| 16 | |
| 17 | @pytest.mark.xfail("env.PYPY") |
| 18 | def test_multiple_inheritance_mix1(): |
| 19 | class Base1: |
| 20 | def __init__(self, i): |
| 21 | self.i = i |
| 22 | |
| 23 | def foo(self): |
| 24 | return self.i |
| 25 | |
| 26 | class MITypePy(Base1, m.Base2): |
| 27 | def __init__(self, i, j): |
| 28 | Base1.__init__(self, i) |
| 29 | m.Base2.__init__(self, j) |
| 30 | |
| 31 | mt = MITypePy(3, 4) |
| 32 | |
| 33 | assert mt.foo() == 3 |
| 34 | assert mt.bar() == 4 |
| 35 | |
| 36 | |
| 37 | def test_multiple_inheritance_mix2(): |