Skip to content

Commit 9c8df44

Browse files
committed
Update test_validators.py
1 parent 5290946 commit 9c8df44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/searchcommands/test_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def test(float_val):
222222
assert False
223223
for s in str(float_val), six.text_type(float_val):
224224
value = validator.__call__(s)
225-
self.assertEqual(value, float_val)
225+
self.assertAlmostEqual(value, float_val)
226226
self.assertIsInstance(value, float)
227227
self.assertEqual(validator.format(float_val), six.text_type(float_val))
228228

0 commit comments

Comments
 (0)