Home
last modified time | relevance | path

Searched refs:FloatSubclass (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_getargs2.py78 class FloatSubclass(float): class
91 return FloatSubclass(4.25)
95 return FloatSubclass(4.25)
342 self.assertEqual(getargs_f(FloatSubclass(7.5)), 7.5)
367 self.assertEqual(getargs_d(FloatSubclass(7.5)), 7.5)
Dtest_float.py30 class FloatSubclass(float): class
218 self.assertAlmostEqual(FloatSubclass(F()), 42.)
219 self.assertIs(type(FloatSubclass(F())), FloatSubclass)