cpython: 350c78a92046 (original) (raw)
Mercurial > cpython
changeset 95534:350c78a92046 2.7
Issue #16840: Fixed Tcl test on 2.7 with Tcl 8.4.19. In some Tcl versions -2147483648 is wide integer. [#16840]
Serhiy Storchaka storchaka@gmail.com | |
---|---|
date | Fri, 10 Apr 2015 21:12:18 +0300 |
parents | 0db36098b908 |
children | 89d47911209b |
files | Lib/test/test_tcl.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-)[+] [-] Lib/test/test_tcl.py 3 |
line wrap: on
line diff
--- 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)))[](#l1.7)
if abs(result) < 2**31:[](#l1.8)
self.assertIsInstance(result, int)[](#l1.9) else:[](#l1.10) self.assertEqual(result, str(i))[](#l1.11) self.assertIsInstance(result, str)[](#l1.12)