[Python-checkins] bpo-42749: Use dynamic version to test for unsupported bignum in Tk (GH-23966)

serhiy-storchaka webhook-mailer at python.org
Tue Dec 29 05:56:26 EST 2020


https://github.com/python/cpython/commit/156b7f7052102ee1633a18e9a136ad8c38f66db0
commit: 156b7f7052102ee1633a18e9a136ad8c38f66db0
branch: master
author: Serhiy Storchaka <storchaka at gmail.com>
committer: serhiy-storchaka <storchaka at gmail.com>
date: 2020-12-29T12:55:55+02:00
summary:

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.

files:
M Lib/test/test_tcl.py

diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py
index 5bc4f9bda171e..ee7344c48ed0b 100644
--- a/Lib/test/test_tcl.py
+++ b/Lib/test/test_tcl.py
@@ -449,7 +449,7 @@ def test_expr_bignum(self):
             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):



More information about the Python-checkins mailing list