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

This commit is contained in:
Serhiy Storchaka 2013-11-21 19:24:04 +02:00
parent 6d24a6e0bb
commit 62cd124ada
3 changed files with 10 additions and 2 deletions

View File

@ -8,7 +8,8 @@ from test_ttk.support import (tcl_version, requires_tcl, get_tk_patchlevel,
from widget_tests import (
add_standard_options, noconv, noconv_meth, int_round, pixels_round,
AbstractWidgetTest, StandardOptionsTests,
IntegerSizeTests, PixelSizeTests)
IntegerSizeTests, PixelSizeTests,
setUpModule)
requires('gui')

View File

@ -9,7 +9,8 @@ from test_functions import MockTclObj, MockStateSpec
from support import tcl_version
from widget_tests import (add_standard_options, noconv, noconv_meth,
AbstractWidgetTest, StandardOptionsTests,
IntegerSizeTests, PixelSizeTests)
IntegerSizeTests, PixelSizeTests,
setUpModule)
requires('gui')

View File

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