diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-12-29 10:55:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-29 10:55:55 (GMT) |
commit | 156b7f7052102ee1633a18e9a136ad8c38f66db0 (patch) | |
tree | 0440b79bab8a6b9b472f643f7d0b97f3171b59c0 /Lib/test/test_tcl.py | |
parent | c56988b88fecf6dc70f039704fda6051a0754db1 (diff) | |
download | cpython-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.py | 2 |
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): |