diff --git a/Lib/lib-tk/test/test_tkinter/test_widgets.py b/Lib/lib-tk/test/test_tkinter/test_widgets.py index f962b824f8e..e7ad14c7587 100644 --- a/Lib/lib-tk/test/test_tkinter/test_widgets.py +++ b/Lib/lib-tk/test/test_tkinter/test_widgets.py @@ -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') diff --git a/Lib/lib-tk/test/test_ttk/test_widgets.py b/Lib/lib-tk/test/test_ttk/test_widgets.py index 95dee5f8059..5ba34206a2f 100644 --- a/Lib/lib-tk/test/test_ttk/test_widgets.py +++ b/Lib/lib-tk/test/test_ttk/test_widgets.py @@ -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') diff --git a/Lib/lib-tk/test/widget_tests.py b/Lib/lib-tk/test/widget_tests.py index e02ff76ffae..c2c0a84c077 100644 --- a/Lib/lib-tk/test/widget_tests.py +++ b/Lib/lib-tk/test/widget_tests.py @@ -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')