Home | History | Annotate | Download | only in test

Lines Matching defs:mro

735         # Classic MRO is preserved for a classic base class.
742 # new-style MRO.
832 # MRO order disagreement
838 self.fail("expected MRO order disagreement (F)")
844 self.fail("expected MRO order disagreement (G)")
860 # Testing MRO monotonicity...
894 # Testing error messages for MRO disagreement...
896 order (MRO) for bases """
1545 # Testing mro() and overriding it...
1554 self.assertEqual(D.mro(), [D, B, C, A, object])
1559 def mro(cls):
1560 L = type.mro(cls)
1571 def mro(self):
1584 self.fail("devious mro() return not caught")
1589 def mro(self):
1594 self.fail("non-class mro() return not caught")
1599 def mro(self):
1604 self.fail("non-sequence mro() return not caught")
4048 # Testing mutable bases with failing mro...
4053 def mro(self):
4058 return type.mro(self)
4061 def mro(self):
4062 # this is here to make sure that .mro()s aren't called
4066 return type.mro(self)
4086 # Immediate subclasses have their mro's adjusted in alphabetical
4102 # Testing mutable bases catch mro conflict...
4123 self.fail("didn't catch MRO conflict")
4710 type.mro(tuple)