From: Steve Dower Date: Tue, 12 Mar 2019 20:51:58 +0000 (-0700) Subject: [3.7] bpo-36216: Only print test messages when verbose (GH-12291) X-Git-Tag: v2.7.17rc1~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=507bd8cde60ced74d13a1ffa883bb9b0e73c38be;p=thirdparty%2FPython%2Fcpython.git [3.7] bpo-36216: Only print test messages when verbose (GH-12291) --- 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 @@ 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)