[pypy-commit] pypy default: Variant: another test that fails.
arigo
noreply at buildbot.pypy.org
Sun Mar 4 21:57:25 CET 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r53212:1aed66b746f3
Date: 2012-03-04 21:57 +0100
http://bitbucket.org/pypy/pypy/changeset/1aed66b746f3/
Log: Variant: another test that fails.
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
More information about the pypy-commit
mailing list