From 4507b8183b4cf0aa2fa006b44c965c5b7b92065c Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Fri, 10 Apr 2015 21:12:18 +0300 Subject: Issue #16840: Fixed Tcl test on 2.7 with Tcl 8.4.19. In some Tcl versions -2147483648 is wide integer. --- Lib/test/test_tcl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py index 4167588..38a960c 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) -- cgit v0.12