From: Serhiy Storchaka Date: Sun, 28 Oct 2018 18:56:30 +0000 (+0200) Subject: [2.7] Fix checking for bugfix Tcl version. (GH-10185). (GH-10188) X-Git-Tag: v2.7.16rc1~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41c7f973b64448d850a8a2f312f9891499536c38;p=thirdparty%2FPython%2Fcpython.git [2.7] Fix checking for bugfix Tcl version. (GH-10185). (GH-10188) (cherry picked from commit 18d57b4d6262bf96b5ac307bd84837c29ea04083) Co-authored-by: Serhiy Storchaka --- 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