]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[2.7] Fix checking for bugfix Tcl version. (GH-10185). (GH-10188)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 28 Oct 2018 18:56:30 +0000 (20:56 +0200)
committerGitHub <noreply@github.com>
Sun, 28 Oct 2018 18:56:30 +0000 (20:56 +0200)
(cherry picked from commit 18d57b4d6262bf96b5ac307bd84837c29ea04083)

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

index cb8eae257a7cf31513f37b3274ae3489d6a03957..a86e0ea85173cc1b7e04bccc4250c40d19d7ff2d 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