summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/test/widget_tests.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-11-21 17:23:19 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-11-21 17:23:19 (GMT)
commit0b1386d9221f6e75a751e189c5d578c9c2fb1923 (patch)
tree291361f5aa3de86ef9874e75b796eecb046d8a50 /Lib/tkinter/test/widget_tests.py
parentd9a018222f4a885ca3eeee41a77103f5462e3813 (diff)
downloadcpython-0b1386d9221f6e75a751e189c5d578c9c2fb1923.zip
cpython-0b1386d9221f6e75a751e189c5d578c9c2fb1923.tar.gz
cpython-0b1386d9221f6e75a751e189c5d578c9c2fb1923.tar.bz2
Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654).
Diffstat (limited to 'Lib/tkinter/test/widget_tests.py')
-rw-r--r--Lib/tkinter/test/widget_tests.py6
1 files changed, 6 insertions, 0 deletions
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'))