Commit 41c7f973 authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub

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

(cherry picked from commit 18d57b4d)
Co-authored-by: default avatarSerhiy Storchaka <storchaka@gmail.com>
parent aaea2802
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment