From: Serhiy Storchaka Date: Fri, 10 Apr 2015 18:12:18 +0000 (+0300) Subject: Issue #16840: Fixed Tcl test on 2.7 with Tcl 8.4.19. X-Git-Tag: v2.7.10rc1~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4507b8183b4cf0aa2fa006b44c965c5b7b92065c;p=thirdparty%2FPython%2Fcpython.git Issue #16840: Fixed Tcl test on 2.7 with Tcl 8.4.19. In some Tcl versions -2147483648 is wide integer. --- diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py index 4167588e627f..38a960cb024a 100644 --- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@ -440,7 +440,8 @@ class TclTest(unittest.TestCase): if self.wantobjects: self.assertEqual(result, i) self.assertIsInstance(result, (int, long)) - self.assertIsInstance(result, type(int(result))) + if abs(result) < 2**31: + self.assertIsInstance(result, int) else: self.assertEqual(result, str(i)) self.assertIsInstance(result, str)