summaryrefslogtreecommitdiff
path: root/Lib/test/test_float.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-03-06 09:10:26 -0500
committerBenjamin Peterson <benjamin@python.org>2015-03-06 09:10:26 -0500
commitc19ed37579877667c791458ac2bbacd5190c3ccc (patch)
tree228685ea6c098e195cc4dc3bd6d9112a703edaa8 /Lib/test/test_float.py
parenta915723dc780f2c6753487795988fe3b75e140a9 (diff)
downloadcpython-git-c19ed37579877667c791458ac2bbacd5190c3ccc.tar.gz
remove redundant test
Diffstat (limited to 'Lib/test/test_float.py')
-rw-r--r--Lib/test/test_float.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/test/test_float.py b/Lib/test/test_float.py
index bd2d6c355f..1baa6a9bbb 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.)