Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654).

This commit is contained in:
Serhiy Storchaka 2013-11-21 19:23:19 +02:00
parent d9a018222f
commit 0b1386d922
3 changed files with 10 additions and 2 deletions

View file

@ -491,3 +491,9 @@ def add_standard_options(*source_classes):
setattr(cls, methodname, test)
return cls
return decorator
def setUpModule():
import test.support
if test.support.verbose:
tcl = tkinter.Tcl()
print('patchlevel =', tcl.call('info', 'patchlevel'))