Home | History | Annotate | Download | only in test

Lines Matching defs:__format__

1410                 def __format__(self, format_spec):
1419 def __format__(self, format_spec):
1450 # TypeError because self.__format__ returns the wrong type
1452 def __format__(self, format_spec):
1460 # tests for object.__format__ really belong elsewhere, but
1462 x = object().__format__('')
1465 # first argument to object.__format__ must be string
1466 self.assertRaises(TypeError, object().__format__, 3)
1467 self.assertRaises(TypeError, object().__format__, object())
1468 self.assertRaises(TypeError, object().__format__, None)
1471 # Issue #7994: object.__format__ with a non-empty format string is
1474 def __format__(self, fmt_str):