[Python-checkins] cpython (2.7): Issue #16840: Skip bignum tests on minor releases where they are not supported.

serhiy.storchaka python-checkins at python.org
Wed Apr 22 10:02:32 CEST 2015


https://hg.python.org/cpython/rev/4bf210f59ac6
changeset:   95762:4bf210f59ac6
branch:      2.7
parent:      95759:cebe15821a0c
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Wed Apr 22 10:51:49 2015 +0300
summary:
  Issue #16840: Skip bignum tests on minor releases where they are not supported.

files:
  Lib/test/test_tcl.py |  4 +++-
  1 files changed, 3 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
@@ -130,7 +130,9 @@
         integers = (0, 1, -1, 2**31-1, -2**31)
         if tcl_version >= (8, 4):  # wideInt was added in Tcl 8.4
             integers += (2**31, -2**31-1, 2**63-1, -2**63)
-        if tcl_version >= (8, 5):  # bignum was added in Tcl 8.5
+        # bignum was added in Tcl 8.5, but its support is able only since 8.5.8
+        if (get_tk_patchlevel() >= (8, 6, 0, 'final') or
+            (8, 5, 8) <= get_tk_patchlevel() < (8, 6)):
             integers += (2**63, -2**63-1, 2**1000, -2**1000)
         return integers
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list