Home | History | Annotate | Download | only in test

Lines Matching defs:__float__

123         # Test automatic calling of __complex__ and __float__ by cmath
164 # some classes not providing __float__ or __complex__
178 # other possible combinations of __float__ and __complex__
181 def __float__(self):
186 def __float__(self):
191 def __float__(self):
194 def __float__(self):
201 # other combinations of __float__ and __complex__
207 # either __complex__ or __float__, even if they provide
225 # functions, by virtue of providing a __float__ method
228 self.assertEqual(f(arg), f(arg.__float__()))