From: Benjamin Peterson Date: Fri, 6 Mar 2015 14:10:26 +0000 (-0500) Subject: remove redundant test X-Git-Tag: v3.5.0a2~14^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c19ed37579877667c791458ac2bbacd5190c3ccc;p=thirdparty%2FPython%2Fcpython.git remove redundant test --- diff --git a/Lib/test/test_float.py b/Lib/test/test_float.py index bd2d6c355ff3..1baa6a9bbbfe 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.)