Fix checking for bugfix Tcl version. (GH-10185)

This commit is contained in:
Serhiy Storchaka 2018-10-28 19:48:36 +02:00 committed by GitHub
parent 3d4fabb2a4
commit 18d57b4d62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)