diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-03-06 14:10:26 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-03-06 14:10:26 (GMT) |
commit | c19ed37579877667c791458ac2bbacd5190c3ccc (patch) | |
tree | 228685ea6c098e195cc4dc3bd6d9112a703edaa8 /Lib/test/test_float.py | |
parent | a915723dc780f2c6753487795988fe3b75e140a9 (diff) | |
download | cpython-c19ed37579877667c791458ac2bbacd5190c3ccc.zip cpython-c19ed37579877667c791458ac2bbacd5190c3ccc.tar.gz cpython-c19ed37579877667c791458ac2bbacd5190c3ccc.tar.bz2 |
remove redundant test
Diffstat (limited to 'Lib/test/test_float.py')
-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.) |