From: Serhiy Storchaka Date: Mon, 7 Jul 2014 10:45:15 +0000 (+0300) Subject: Issue #21881: Be more tolerant in test_tcl to not parsable by float() NaN X-Git-Tag: v3.5.0a1~1335 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=66ca861f86f59a19ed01dab0113b2e45d1b1f7f5;p=thirdparty%2FPython%2Fcpython.git Issue #21881: Be more tolerant in test_tcl to not parsable by float() NaN representations (on mips and m68k platforms). --- 66ca861f86f59a19ed01dab0113b2e45d1b1f7f5 diff --cc Lib/test/test_tcl.py index e5b17a1da628,cb86a7390ee8..9c5d97452bf1 --- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@@ -458,10 -456,9 +458,10 @@@ class TclTest(unittest.TestCase) check(f, f, eq=float_eq) check(float('inf'), 'Inf', eq=float_eq) check(-float('inf'), '-Inf', eq=float_eq) - check(float('nan'), 'NaN', eq=nan_eq) + check(float('nan'), 'nan', eq=starts_with) check((), '') check((1, (2,), (3, 4), '5 6', ()), '1 2 {3 4} {5 6} {}') + check([1, [2,], [3, 4], '5 6', []], '1 2 {3 4} {5 6} {}') def test_splitlist(self): splitlist = self.interp.tk.splitlist