From 8db1823cf7963f5a8557eb840a20248bd18f658a Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 20 Nov 2013 17:43:49 +0200 Subject: Print Tk patchlevel in test_tcl in verbose mode (issue19654). --- Lib/test/test_tcl.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py index cf1fcf9..4cf3f28 100644 --- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@ -302,6 +302,12 @@ class BigmemTclTest(unittest.TestCase): self.assertRaises(OverflowError, self.interp.call, 'set', '_', value) +def setUpModule(): + if support.verbose: + tcl = Tcl() + print('patchlevel =', tcl.call('info', 'patchlevel')) + + def test_main(): support.run_unittest(TclTest, TkinterTest, BigmemTclTest) -- cgit v0.12