Author: Alex Gaynor <alex.gay...@gmail.com> Branch: Changeset: r53214:8428c36779c5 Date: 2012-03-04 15:58 -0500 http://bitbucket.org/pypy/pypy/changeset/8428c36779c5/
Log: merged upstream diff --git a/pypy/annotation/test/test_annrpython.py b/pypy/annotation/test/test_annrpython.py --- a/pypy/annotation/test/test_annrpython.py +++ b/pypy/annotation/test/test_annrpython.py @@ -2453,6 +2453,25 @@ s = a.build_types(f, []) assert s.const == 2 + def test_multiple_mixins_mro_2(self): + class A(object): + _mixin_ = True + def foo(self): return 1 + class B(A): + _mixin_ = True + def foo(self): return 2 + class C(A): + _mixin_ = True + class Concrete(C, B): + pass + def f(): + return Concrete().foo() + + assert f() == 2 + a = self.RPythonAnnotator() + s = a.build_types(f, []) + assert s.const == 2 + def test___class___attribute(self): class Base(object): pass class A(Base): pass _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit