Commit 62cd124a authored by Serhiy Storchaka's avatar Serhiy Storchaka

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

parent 6d24a6e0
......@@ -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')
......
......@@ -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')
......
......@@ -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')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment