]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.7] bpo-36216: Only print test messages when verbose (GH-12291)
authorSteve Dower <steve.dower@microsoft.com>
Tue, 12 Mar 2019 20:51:58 +0000 (13:51 -0700)
committerGitHub <noreply@github.com>
Tue, 12 Mar 2019 20:51:58 +0000 (13:51 -0700)
Lib/test/test_urlparse.py

index 73b0228ea8e3b5072416fc7f6a49bb179a33f269..1830d0b28688d55bccecb90fa7f78dd6aa79c81b 100644 (file)
@@ -644,7 +644,8 @@ class UrlParseTestCase(unittest.TestCase):
         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)