[Python-checkins] cpython (2.7): Issue #16840: Fixed Tcl test on 2.7 with Tcl 8.4.19.

serhiy.storchaka python-checkins at python.org
Fri Apr 10 20:13:47 CEST 2015


https://hg.python.org/cpython/rev/350c78a92046
changeset: 95534:350c78a92046
branch: 2.7
parent: 95524:0db36098b908
user: Serhiy Storchaka <storchaka at gmail.com>
date: Fri Apr 10 21:12:18 2015 +0300
summary:
 Issue #16840: Fixed Tcl test on 2.7 with Tcl 8.4.19.
In some Tcl versions -2147483648 is wide integer.
files:
 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
--- 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)
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /