[2.7] Fix checking for bugfix Tcl version. (GH-10185). (GH-10188)
(cherry picked from commit 18d57b4d62
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
aaea2802da
commit
41c7f973b6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue