summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-04-22 07:51:49 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-04-22 07:51:49 (GMT)
commit6294d9f5f0855d32533dc3958f777d670b482fee (patch)
tree9a0d52c0ce466f1f98fccaddd6d51e08004408e2
parentdcb12f46d10b357fd769cd157e2e9786ad7286cc (diff)
downloadcpython-6294d9f5f0855d32533dc3958f777d670b482fee.zip
cpython-6294d9f5f0855d32533dc3958f777d670b482fee.tar.gz
cpython-6294d9f5f0855d32533dc3958f777d670b482fee.tar.bz2
Issue #16840: Skip bignum tests on minor releases where they are not supported.
-rw-r--r--Lib/test/test_tcl.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py
index 81346f8..9c9afde 100644
--- a/Lib/test/test_tcl.py
+++ b/Lib/test/test_tcl.py
@@ -130,7 +130,9 @@ class TclTest(unittest.TestCase):
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