summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tcl.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-12-29 10:55:55 (GMT)
committerGitHub <noreply@github.com>2020-12-29 10:55:55 (GMT)
commit156b7f7052102ee1633a18e9a136ad8c38f66db0 (patch)
tree0440b79bab8a6b9b472f643f7d0b97f3171b59c0 /Lib/test/test_tcl.py
parentc56988b88fecf6dc70f039704fda6051a0754db1 (diff)
downloadcpython-156b7f7052102ee1633a18e9a136ad8c38f66db0.zip
cpython-156b7f7052102ee1633a18e9a136ad8c38f66db0.tar.gz
cpython-156b7f7052102ee1633a18e9a136ad8c38f66db0.tar.bz2
bpo-42749: Use dynamic version to test for unsupported bignum in Tk (GH-23966)
Tk can internally support bignum even if Tkinter is built without support of bignum.
Diffstat (limited to 'Lib/test/test_tcl.py')
-rw-r--r--Lib/test/test_tcl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py
index 5bc4f9b..ee7344c 100644
--- a/Lib/test/test_tcl.py
+++ b/Lib/test/test_tcl.py
@@ -449,7 +449,7 @@ class TclTest(unittest.TestCase):
else:
self.assertEqual(result, str(i))
self.assertIsInstance(result, str)
- if tcl_version < (8, 5): # bignum was added in Tcl 8.5
+ if get_tk_patchlevel() < (8, 5): # bignum was added in Tcl 8.5
self.assertRaises(TclError, tcl.call, 'expr', str(2**1000))
def test_passing_values(self):