Kaydet (Commit) 4507b818 authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

Issue #16840: Fixed Tcl test on 2.7 with Tcl 8.4.19.

In some Tcl versions -2147483648 is wide integer.
üst 46129544
...@@ -440,7 +440,8 @@ class TclTest(unittest.TestCase): ...@@ -440,7 +440,8 @@ class TclTest(unittest.TestCase):
if self.wantobjects: if self.wantobjects:
self.assertEqual(result, i) self.assertEqual(result, i)
self.assertIsInstance(result, (int, long)) self.assertIsInstance(result, (int, long))
self.assertIsInstance(result, type(int(result))) if abs(result) < 2**31:
self.assertIsInstance(result, int)
else: else:
self.assertEqual(result, str(i)) self.assertEqual(result, str(i))
self.assertIsInstance(result, str) self.assertIsInstance(result, str)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment