From 68131947fb211401fcf7edb374918c2f25069f1f Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 28 Oct 2018 19:48:36 +0200 Subject: [PATCH 1/2] Fix checking for bugfix Tcl version. (GH-10185) (cherry picked from commit 18d57b4d6262bf96b5ac307bd84837c29ea04083) Co-authored-by: Serhiy Storchaka --- Lib/tkinter/test/support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/tkinter/test/support.py b/Lib/tkinter/test/support.py index 0d9a65a5cc8302..1321c056c2a221 100644 --- a/Lib/tkinter/test/support.py +++ b/Lib/tkinter/test/support.py @@ -62,7 +62,7 @@ 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()))) test(self) From 98e544f67f594c56c8f9720de73f44061c4a3850 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 28 Oct 2018 20:08:56 +0200 Subject: [PATCH 2/2] Update support.py --- Lib/tkinter/test/support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/tkinter/test/support.py b/Lib/tkinter/test/support.py index 1321c056c2a221..467a0b66c265c0 100644 --- a/Lib/tkinter/test/support.py +++ b/Lib/tkinter/test/support.py @@ -64,7 +64,7 @@ def deco(test): def newtest(self): 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