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 4167588..38a960c 100644
--- a/Lib/test/test_tcl.py
+++ b/Lib/test/test_tcl.py
@@ -440,7 +440,8 @@
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)