From 0b1386d9221f6e75a751e189c5d578c9c2fb1923 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 21 Nov 2013 19:23:19 +0200 Subject: Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654). --- Lib/tkinter/test/widget_tests.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Lib/tkinter/test/widget_tests.py') diff --git a/Lib/tkinter/test/widget_tests.py b/Lib/tkinter/test/widget_tests.py index 300aa41f56..14b4ca104d 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')) -- cgit v1.2.1