summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-01-23 14:08:35 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-01-23 14:08:35 (GMT)
commiteb7ef94166a74f99f8a0e3f86e40bcf41603d125 (patch)
treeef5fe7b8b182669a2707bfce0adf4cd15818a5d4 /Lib
parentdc97667254bdc7bc3fc662f2c5fdb0298ab9fc8b (diff)
downloadcpython-eb7ef94166a74f99f8a0e3f86e40bcf41603d125.zip
cpython-eb7ef94166a74f99f8a0e3f86e40bcf41603d125.tar.gz
cpython-eb7ef94166a74f99f8a0e3f86e40bcf41603d125.tar.bz2
Third attempt to fix test_user_command on OpenSolaris.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_tcl.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py
index dfad319..3b89e5c 100644
--- a/Lib/test/test_tcl.py
+++ b/Lib/test/test_tcl.py
@@ -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)