]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.6] Fix checking for bugfix Tcl version. (GH-10185) (GH-10187)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 28 Oct 2018 18:57:38 +0000 (11:57 -0700)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 28 Oct 2018 18:57:38 +0000 (20:57 +0200)
(cherry picked from commit 18d57b4d6262bf96b5ac307bd84837c29ea04083)

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

index 0d9a65a5cc830288e61cb51848b3337363da7bd1..467a0b66c265c05f5631f544633151cd19e9b261 100644 (file)
@@ -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