Home | History | Annotate | Download | only in test

Lines Matching defs:__format__

1516                 def __format__(self, format_spec):
1525 def __format__(self, format_spec):
1535 def __format__(self, format_spec):
1544 def __format__(self, format_spec):
1576 # TypeError because self.__format__ returns the wrong type
1578 def __format__(self, format_spec):
1586 # tests for object.__format__ really belong elsewhere, but
1588 x = object().__format__('')
1591 # first argument to object.__format__ must be string
1592 self.assertRaises(TypeError, object().__format__, 3)
1593 self.assertRaises(TypeError, object().__format__, object())
1594 self.assertRaises(TypeError, object().__format__, None)
1597 # Issue #7994: object.__format__ with a non-empty format string is
1606 self.assertIn('object.__format__ with a non-empty format '
1614 def __format__(self, fmt_str):