Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654).
This commit is contained in:
parent
6d24a6e0bb
commit
62cd124ada
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue