[Python-checkins] [3.7] Fix checking for bugfix Tcl version. (GH-10185) (GH-10186)

Serhiy Storchaka webhook-mailer at python.org
Sun Oct 28 14:57:08 EDT 2018


https://github.com/python/cpython/commit/1cea3843ded7bb9b3b6c72384a6f5f66a6077675
commit: 1cea3843ded7bb9b3b6c72384a6f5f66a6077675
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2018-10-28T20:57:04+02:00
summary:

[3.7] Fix checking for bugfix Tcl version. (GH-10185) (GH-10186)

(cherry picked from commit 18d57b4d6262bf96b5ac307bd84837c29ea04083)

Co-authored-by: Serhiy Storchaka <storchaka at gmail.com>

files:
M Lib/tkinter/test/support.py

diff --git a/Lib/tkinter/test/support.py b/Lib/tkinter/test/support.py
index 0d9a65a5cc83..467a0b66c265 100644
--- a/Lib/tkinter/test/support.py
+++ b/Lib/tkinter/test/support.py
@@ -62,9 +62,9 @@ def requires_tcl(*version):
     def deco(test):
         @functools.wraps(test)
         def newtest(self):
-            if get_tk_patchlevel() < (8, 6, 5):
+            if get_tk_patchlevel() < version:
                 self.skipTest('requires Tcl version >= ' +
-                                '.'.join(map(str, get_tk_patchlevel())))
+                                '.'.join(map(str, version)))
             test(self)
         return newtest
     return deco



More information about the Python-checkins mailing list