[Python-checkins] cpython (2.7): Print Tk patchlevel in test_tcl in verbose mode (issue19654).

serhiy.storchaka python-checkins at python.org
Wed Nov 20 16:45:01 CET 2013


http://hg.python.org/cpython/rev/78c906600183
changeset:   87295:78c906600183
branch:      2.7
parent:      87274:e52d7b173ab5
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Wed Nov 20 17:44:38 2013 +0200
summary:
  Print Tk patchlevel in test_tcl in verbose mode (issue19654).

files:
  Lib/test/test_tcl.py |  6 ++++++
  1 files changed, 6 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py
--- a/Lib/test/test_tcl.py
+++ b/Lib/test/test_tcl.py
@@ -282,6 +282,12 @@
         self.assertRaises(OverflowError, self.interp.call, 'set', '_', value)
 
 
+def setUpModule():
+    if test_support.verbose:
+        tcl = Tcl()
+        print 'patchlevel =', tcl.call('info', 'patchlevel')
+
+
 def test_main():
     test_support.run_unittest(TclTest, TkinterTest, BigmemTclTest)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list