summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-10-28 18:56:30 (GMT)
committerGitHub <noreply@github.com>2018-10-28 18:56:30 (GMT)
commit41c7f973b64448d850a8a2f312f9891499536c38 (patch)
treeb63fe3aadac9a601475d7825c50025fb0924775d
parentaaea2802da0a074c695ab86911d8bcc0b2dd5ec5 (diff)
downloadcpython-41c7f973b64448d850a8a2f312f9891499536c38.zip
cpython-41c7f973b64448d850a8a2f312f9891499536c38.tar.gz
cpython-41c7f973b64448d850a8a2f312f9891499536c38.tar.bz2
[2.7] Fix checking for bugfix Tcl version. (GH-10185). (GH-10188)
(cherry picked from commit 18d57b4d6262bf96b5ac307bd84837c29ea04083) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
-rw-r--r--Lib/lib-tk/test/test_ttk/support.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/lib-tk/test/test_ttk/support.py b/Lib/lib-tk/test/test_ttk/support.py
index cb8eae2..a86e0ea 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