mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654).
This commit is contained in:
commit
d88c6f9b9b
3 changed files with 10 additions and 2 deletions
|
@ -7,7 +7,8 @@ from tkinter.test.support import (tcl_version, requires_tcl,
|
|||
get_tk_patchlevel, widget_eq)
|
||||
from tkinter.test.widget_tests import (
|
||||
add_standard_options, noconv, pixels_round,
|
||||
AbstractWidgetTest, StandardOptionsTests, IntegerSizeTests, PixelSizeTests)
|
||||
AbstractWidgetTest, StandardOptionsTests, IntegerSizeTests, PixelSizeTests,
|
||||
setUpModule)
|
||||
|
||||
requires('gui')
|
||||
|
||||
|
|
|
@ -8,7 +8,8 @@ import tkinter.test.support as support
|
|||
from tkinter.test.test_ttk.test_functions import MockTclObj
|
||||
from tkinter.test.support import tcl_version
|
||||
from tkinter.test.widget_tests import (add_standard_options, noconv,
|
||||
AbstractWidgetTest, StandardOptionsTests, IntegerSizeTests, PixelSizeTests)
|
||||
AbstractWidgetTest, StandardOptionsTests, IntegerSizeTests, PixelSizeTests,
|
||||
setUpModule)
|
||||
|
||||
requires('gui')
|
||||
|
||||
|
|
|
@ -491,3 +491,9 @@ def add_standard_options(*source_classes):
|
|||
setattr(cls, methodname, test)
|
||||
return cls
|
||||
return decorator
|
||||
|
||||
def setUpModule():
|
||||
import test.support
|
||||
if test.support.verbose:
|
||||
tcl = tkinter.Tcl()
|
||||
print('patchlevel =', tcl.call('info', 'patchlevel'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue