Commit 507bd8cd authored by Steve Dower's avatar Steve Dower Committed by GitHub

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

parent 701af605
...@@ -644,7 +644,8 @@ class UrlParseTestCase(unittest.TestCase): ...@@ -644,7 +644,8 @@ class UrlParseTestCase(unittest.TestCase):
for scheme in [u"http", u"https", u"ftp"]: for scheme in [u"http", u"https", u"ftp"]:
for c in denorm_chars: for c in denorm_chars:
url = u"{}://netloc{}false.netloc/path".format(scheme, c) 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): with self.assertRaises(ValueError):
urlparse.urlsplit(url) urlparse.urlsplit(url)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment