Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a915723 commit c19ed37Copy full SHA for c19ed37
1 file changed
Lib/test/test_float.py
@@ -94,10 +94,6 @@ def test_float_with_comma(self):
94
95
def test_floatconversion(self):
96
# Make sure that calls to __float__() work properly
97
- class Foo0:
98
- def __float__(self):
99
- return 42.
100
-
101
class Foo1(object):
102
def __float__(self):
103
return 42.
@@ -123,7 +119,6 @@ class FooStr(str):
123
119
124
120
return float(str(self)) + 1
125
121
126
- self.assertAlmostEqual(float(Foo0()), 42.)
127
122
self.assertAlmostEqual(float(Foo1()), 42.)
128
self.assertAlmostEqual(float(Foo2()), 42.)
129
self.assertAlmostEqual(float(Foo3(21)), 42.)
0 commit comments