diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-10 18:12:18 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-10 18:12:18 (GMT) |
commit | 4507b8183b4cf0aa2fa006b44c965c5b7b92065c (patch) | |
tree | 837205e32cbc756cd9e559f046d3f1e3b7936d46 | |
parent | 461295443f23e77cf08d70e59652dfdc75f2b696 (diff) | |
download | cpython-4507b8183b4cf0aa2fa006b44c965c5b7b92065c.zip cpython-4507b8183b4cf0aa2fa006b44c965c5b7b92065c.tar.gz cpython-4507b8183b4cf0aa2fa006b44c965c5b7b92065c.tar.bz2 |
Issue #16840: Fixed Tcl test on 2.7 with Tcl 8.4.19.
In some Tcl versions -2147483648 is wide integer.
-rw-r--r-- | Lib/test/test_tcl.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |