diff options
-rw-r--r-- | Lib/test/test_float.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/test/test_float.py b/Lib/test/test_float.py index bd2d6c3..1baa6a9 100644 --- a/Lib/test/test_float.py +++ b/Lib/test/test_float.py @@ -94,10 +94,6 @@ class GeneralFloatCases(unittest.TestCase): def test_floatconversion(self): # Make sure that calls to __float__() work properly - class Foo0: - def __float__(self): - return 42. - class Foo1(object): def __float__(self): return 42. @@ -123,7 +119,6 @@ class GeneralFloatCases(unittest.TestCase): def __float__(self): return float(str(self)) + 1 - self.assertAlmostEqual(float(Foo0()), 42.) self.assertAlmostEqual(float(Foo1()), 42.) self.assertAlmostEqual(float(Foo2()), 42.) self.assertAlmostEqual(float(Foo3(21)), 42.) |