Commit eb7ef941 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Third attempt to fix test_user_command on OpenSolaris.

parent dc976672
......@@ -219,7 +219,9 @@ class TclTest(unittest.TestCase):
self.assertIsInstance(r, str)
eq(r, expected)
def float_eq(actual, expected):
self.assertAlmostEqual(float(actual), float(expected))
expected = float(expected)
self.assertAlmostEqual(float(actual), expected,
delta=abs(expected) * 1e-10)
def nan_eq(actual, expected):
actual = float(actual)
self.assertNotEqual(actual, actual)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment