Home | History | Annotate | Download | only in test

Lines Matching defs:mro

902         # MRO order disagreement
908 self.fail("expected MRO order disagreement (F)")
914 self.fail("expected MRO order disagreement (G)")
930 # Testing MRO monotonicity...
964 # Testing error messages for MRO disagreement...
966 order (MRO) for bases """
1737 # Testing mro() and overriding it...
1746 self.assertEqual(D.mro(), [D, B, C, A, object])
1751 def mro(cls):
1752 L = type.mro(cls)
1762 def mro(self):
1777 self.fail("devious mro() return not caught")
1781 def mro(self):
1788 self.fail("non-class mro() return not caught")
1792 def mro(self):
1799 self.fail("non-sequence mro() return not caught")
3924 # Testing mutable bases with failing mro...
3929 def mro(self):
3934 return type.mro(self)
3937 def mro(self):
3938 # this is here to make sure that .mro()s aren't called
3942 return type.mro(self)
3962 # Immediate subclasses have their mro's adjusted in alphabetical
3978 # Testing mutable bases catch mro conflict...
3999 self.fail("didn't catch MRO conflict")
4737 type.mro(tuple)
4743 # the type MRO because it may be modified during the lookup, if
5235 mcsl.mro() customization (typeobject.c: mro_internal()) and
5254 def mro(cls):
5259 return type.mro(cls)
5269 def mro(cls):
5275 return type.mro(cls)
5288 def mro(cls):
5294 return type.mro(cls)
5306 MRO of the type, which may be not yet updated in case of reentrance,
5308 inner calls to mro().
5320 def mro(cls):
5326 return type.mro(cls)
5349 def mro(cls):
5353 return type.mro(cls)
5383 def mro(cls):
5390 return type.mro(cls)
5407 self.assertEqual(C.__mro__, tuple(type.mro(C)))
5416 def mro(cls):
5422 return type.mro(cls)
5433 def mro(cls):
5438 return type.mro(cls)