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

This commit is contained in:
Steve Dower 2019-03-12 13:51:58 -07:00 committed by GitHub
parent 701af605df
commit 507bd8cde6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View 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)