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

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


https://github.com/python/cpython/commit/41c7f973b64448d850a8a2f312f9891499536c38
commit: 41c7f973b64448d850a8a2f312f9891499536c38
branch: 2.7
author: Serhiy Storchaka <storchaka at gmail.com>
committer: GitHub <noreply at github.com>
date: 2018-10-28T20:56:30+02:00
summary:

[2.7] Fix checking for bugfix Tcl version. (GH-10185). (GH-10188)

(cherry picked from commit 18d57b4d6262bf96b5ac307bd84837c29ea04083)

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

files:
M Lib/lib-tk/test/test_ttk/support.py

diff --git a/Lib/lib-tk/test/test_ttk/support.py b/Lib/lib-tk/test/test_ttk/support.py
index cb8eae257a7c..a86e0ea85173 100644
--- a/Lib/lib-tk/test/test_ttk/support.py
+++ b/Lib/lib-tk/test/test_ttk/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