Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 156b7f7

Browse files
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.
1 parent c56988b commit 156b7f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_tcl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def test_expr_bignum(self):
449449
else:
450450
self.assertEqual(result, str(i))
451451
self.assertIsInstance(result, str)
452-
if tcl_version < (8, 5): # bignum was added in Tcl 8.5
452+
if get_tk_patchlevel() < (8, 5): # bignum was added in Tcl 8.5
453453
self.assertRaises(TclError, tcl.call, 'expr', str(2**1000))
454454

455455
def test_passing_values(self):

0 commit comments

Comments
 (0)