Lines Matching refs:mro
1854 # Testing mro() and overriding it...
1863 self.assertEqual(A.mro(), [A, object])
1865 self.assertEqual(B.mro(), [B, A, object])
1867 self.assertEqual(C.mro(), [C, A, object])
1869 self.assertEqual(D.mro(), [D, B, C, A, object])
1874 def mro(cls):
1875 L = type.mro(cls)
1885 def mro(self):
1900 self.fail("devious mro() return not caught")
1904 def mro(self):
1911 self.fail("non-class mro() return not caught")
1915 def mro(self):
1922 self.fail("non-sequence mro() return not caught")
4124 # Testing mutable bases with failing mro...
4129 def mro(self):
4134 return type.mro(self)
4137 def mro(self):
4138 # this is here to make sure that .mro()s aren't called
4142 return type.mro(self)
4162 # Immediate subclasses have their mro's adjusted in alphabetical
4178 # Testing mutable bases catch mro conflict...
5098 type.mro(tuple)
5611 mcsl.mro() customization (typeobject.c: mro_internal()) and
5630 def mro(cls):
5635 return type.mro(cls)
5645 def mro(cls):
5651 return type.mro(cls)
5664 def mro(cls):
5670 return type.mro(cls)
5684 inner calls to mro().
5696 def mro(cls):
5702 return type.mro(cls)
5725 def mro(cls):
5729 return type.mro(cls)
5759 def mro(cls):
5766 return type.mro(cls)
5783 self.assertEqual(C.__mro__, tuple(type.mro(C)))
5792 def mro(cls):
5798 return type.mro(cls)
5809 def mro(cls):
5814 return type.mro(cls)
5821 gh-92112: A custom mro() returning a result conflicting with
5828 def mro(cls):
5829 del M.mro