We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af531a5 commit f224ceaCopy full SHA for f224cea
Lib/test/test_float.py
@@ -89,8 +89,6 @@ def test_underscores(self):
89
# Check that we handle bytes values correctly.
90
self.assertRaises(ValueError, float, b'0_.\xff9')
91
92
- # TODO: RUSTPYTHON
93
- @unittest.expectedFailure
94
def test_non_numeric_input_types(self):
95
# Test possible non-numeric types for the argument x, including
96
# subclasses of the explicitly documented accepted types.
@@ -120,8 +118,6 @@ class CustomByteArray(bytearray): pass
120
118
with self.assertRaisesRegex(ValueError, "could not convert"):
121
119
float(f(b'A' * 0x10))
122
123
124
125
def test_float_memoryview(self):
126
self.assertEqual(float(memoryview(b'12.3')[1:4]), 2.3)
127
self.assertEqual(float(memoryview(b'12.3\x00')[1:4]), 2.3)
0 commit comments