summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-04-22 07:59:32 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-04-22 07:59:32 (GMT)
commit71b49dde3a1162248e43ff99f4e83aae07747341 (patch)
treef520f6951c08c923eac024b961755be1fbbcc7b0 /Lib
parentaec050919344b9272f260b6275523cfb3abd1e41 (diff)
parent3af7a38c616869b1d195add43b43e8af118e6a31 (diff)
downloadcpython-71b49dde3a1162248e43ff99f4e83aae07747341.zip
cpython-71b49dde3a1162248e43ff99f4e83aae07747341.tar.gz
cpython-71b49dde3a1162248e43ff99f4e83aae07747341.tar.bz2
Issue #16840. Turn off bignum support in tkinter with with Tcl earlier than 8.5.8
(tclTomMath.h was broken) and non-final Tcl 8.6. Removed TK_VERSION_HEX.
Diffstat (limited to 'Lib')
-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 10b7675..add0871 100644
--- a/Lib/test/test_tcl.py
+++ b/Lib/test/test_tcl.py
@@ -131,7 +131,9 @@ class TclTest(unittest.TestCase):
def get_integers(self):
integers = (0, 1, -1, 2**31-1, -2**31, 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