From d594a6d74ad2a36bb4a3fa06f465178f6ac3f723 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 4372893048b2befb3ead449dc654d5dad8fa3b17 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 28 Oct 2018 20:09:26 +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