]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42749: Use dynamic version to test for unsupported bignum in Tk (GH-23966)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 29 Dec 2020 11:16:43 +0000 (03:16 -0800)
committerGitHub <noreply@github.com>
Tue, 29 Dec 2020 11:16:43 +0000 (03:16 -0800)
Tk can internally support bignum even if Tkinter is built without
support of bignum.
(cherry picked from commit 156b7f7052102ee1633a18e9a136ad8c38f66db0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_tcl.py

index 6ac0db4dc4a9c2a90ba2a80302ba9cc624ec43d9..c41235c1971a27209a10afb3d162008bd92a6c1e 100644 (file)
@@ -446,7 +446,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):