[Python-checkins] [3.7] bpo-36216: Only print test messages when verbose (GH-12291)

Steve Dower webhook-mailer at python.org
Tue Mar 12 16:52:04 EDT 2019


https://github.com/python/cpython/commit/507bd8cde60ced74d13a1ffa883bb9b0e73c38be
commit: 507bd8cde60ced74d13a1ffa883bb9b0e73c38be
branch: 2.7
author: Steve Dower <steve.dower at microsoft.com>
committer: GitHub <noreply at github.com>
date: 2019-03-12T13:51:58-07:00
summary:

[3.7] bpo-36216: Only print test messages when verbose (GH-12291)

files:
M Lib/test/test_urlparse.py

diff --git a/Lib/test/test_urlparse.py b/Lib/test/test_urlparse.py
index 73b0228ea8e3..1830d0b28688 100644
--- a/Lib/test/test_urlparse.py
+++ b/Lib/test/test_urlparse.py
@@ -644,7 +644,8 @@ def test_urlsplit_normalization(self):
         for scheme in [u"http", u"https", u"ftp"]:
             for c in denorm_chars:
                 url = u"{}://netloc{}false.netloc/path".format(scheme, c)
-                print "Checking %r" % url
+                if test_support.verbose:
+                    print "Checking %r" % url
                 with self.assertRaises(ValueError):
                     urlparse.urlsplit(url)
 



More information about the Python-checkins mailing list