summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/test
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-11-21 17:23:50 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-11-21 17:23:50 (GMT)
commitd88c6f9b9bae5aecdcedecf9185aff9a31bf6c4f (patch)
tree12a326f0322051612031603337fbab4d31425789 /Lib/tkinter/test
parent1b627602214c264a65d4fc9826988e19a8c8e9a9 (diff)
parent0b1386d9221f6e75a751e189c5d578c9c2fb1923 (diff)
downloadcpython-d88c6f9b9bae5aecdcedecf9185aff9a31bf6c4f.zip
cpython-d88c6f9b9bae5aecdcedecf9185aff9a31bf6c4f.tar.gz
cpython-d88c6f9b9bae5aecdcedecf9185aff9a31bf6c4f.tar.bz2
Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654).
Diffstat (limited to 'Lib/tkinter/test')
-rw-r--r--Lib/tkinter/test/test_tkinter/test_widgets.py3
-rw-r--r--Lib/tkinter/test/test_ttk/test_widgets.py3
-rw-r--r--Lib/tkinter/test/widget_tests.py6
3 files changed, 10 insertions, 2 deletions
diff --git a/Lib/tkinter/test/test_tkinter/test_widgets.py b/Lib/tkinter/test/test_tkinter/test_widgets.py
index 4cd8a45..166a752 100644
--- a/Lib/tkinter/test/test_tkinter/test_widgets.py
+++ b/Lib/tkinter/test/test_tkinter/test_widgets.py
@@ -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')
diff --git a/Lib/tkinter/test/test_ttk/test_widgets.py b/Lib/tkinter/test/test_ttk/test_widgets.py
index 967a358..0035214 100644
--- a/Lib/tkinter/test/test_ttk/test_widgets.py
+++ b/Lib/tkinter/test/test_ttk/test_widgets.py
@@ -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')
diff --git a/Lib/tkinter/test/widget_tests.py b/Lib/tkinter/test/widget_tests.py
index 300aa41..14b4ca1 100644
--- a/Lib/tkinter/test/widget_tests.py
+++ b/Lib/tkinter/test/widget_tests.py
@@ -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'))