[Jython-checkins] jython: Print retrying for test_support retry decorator only if verbose

jim.baker jython-checkins at python.org
Mon Mar 2 02:29:36 CET 2015


https://hg.python.org/jython/rev/5d7c7759eee9
changeset:   7601:5d7c7759eee9
user:        Jim Baker <jim.baker at rackspace.com>
date:        Sun Mar 01 18:28:45 2015 -0700
summary:
  Print retrying for test_support retry decorator only if verbose

files:
  Lib/test/test_support.py |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -1456,7 +1456,8 @@
                 try:
                     return f(*args, **kwds)
                 except exceptions as e:
-                    print "Got %s, retrying in %.2f seconds..." % (str(e), mdelay)
+                    if verbose:
+                        print "Got %s, retrying in %.2f seconds..." % (str(e), mdelay)
                     # FIXME resource cleanup continues to be an issue
                     # in terms of tests we use from CPython. This only
                     # represents a bandaid - useful as it might be -

-- 
Repository URL: https://hg.python.org/jython


More information about the Jython-checkins mailing list