Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c19ed37

Browse files
committed
remove redundant test
1 parent a915723 commit c19ed37

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

Lib/test/test_float.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ def test_float_with_comma(self):
9494

9595
def test_floatconversion(self):
9696
# Make sure that calls to __float__() work properly
97-
class Foo0:
98-
def __float__(self):
99-
return 42.
100-
10197
class Foo1(object):
10298
def __float__(self):
10399
return 42.
@@ -123,7 +119,6 @@ class FooStr(str):
123119
def __float__(self):
124120
return float(str(self)) + 1
125121

126-
self.assertAlmostEqual(float(Foo0()), 42.)
127122
self.assertAlmostEqual(float(Foo1()), 42.)
128123
self.assertAlmostEqual(float(Foo2()), 42.)
129124
self.assertAlmostEqual(float(Foo3(21)), 42.)

0 commit comments

Comments
 (0)