Commit 58b58f24 authored by Serhiy Storchaka's avatar Serhiy Storchaka

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

parent 2d95c911
...@@ -7,7 +7,8 @@ from tkinter.test.support import (tcl_version, requires_tcl, ...@@ -7,7 +7,8 @@ from tkinter.test.support import (tcl_version, requires_tcl,
get_tk_patchlevel, widget_eq) get_tk_patchlevel, widget_eq)
from tkinter.test.widget_tests import ( from tkinter.test.widget_tests import (
add_standard_options, noconv, pixels_round, add_standard_options, noconv, pixels_round,
AbstractWidgetTest, StandardOptionsTests, IntegerSizeTests, PixelSizeTests) AbstractWidgetTest, StandardOptionsTests, IntegerSizeTests, PixelSizeTests,
setUpModule)
requires('gui') requires('gui')
......
...@@ -8,7 +8,8 @@ import tkinter.test.support as support ...@@ -8,7 +8,8 @@ import tkinter.test.support as support
from tkinter.test.test_ttk.test_functions import MockTclObj from tkinter.test.test_ttk.test_functions import MockTclObj
from tkinter.test.support import tcl_version from tkinter.test.support import tcl_version
from tkinter.test.widget_tests import (add_standard_options, noconv, from tkinter.test.widget_tests import (add_standard_options, noconv,
AbstractWidgetTest, StandardOptionsTests, IntegerSizeTests, PixelSizeTests) AbstractWidgetTest, StandardOptionsTests, IntegerSizeTests, PixelSizeTests,
setUpModule)
requires('gui') requires('gui')
......
...@@ -491,3 +491,9 @@ def add_standard_options(*source_classes): ...@@ -491,3 +491,9 @@ def add_standard_options(*source_classes):
setattr(cls, methodname, test) setattr(cls, methodname, test)
return cls return cls
return decorator return decorator
def setUpModule():
import test.support
if 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