[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:
Serhiy Storchaka 2018-10-28 20:56:30 +02:00 committed by GitHub
parent aaea2802da
commit 41c7f973b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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