Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame^] | 1 | From 06b5ee585d6e76bdbb4002f642d864d860cbbd2b Mon Sep 17 00:00:00 2001 |
| 2 | From: Steve Dower <steve.dower@python.org> |
| 3 | Date: Tue, 12 Mar 2019 08:23:33 -0700 |
| 4 | Subject: [PATCH] bpo-36216: Only print test messages when verbose |
| 5 | |
| 6 | CVE: CVE-2019-9636 |
| 7 | |
| 8 | Upstream-Status: Backport https://github.com/python/cpython/pull/12291/commits/06b5ee585d6e76bdbb4002f642d864d860cbbd2b |
| 9 | |
| 10 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
| 11 | --- |
| 12 | Lib/test/test_urlparse.py | 3 ++- |
| 13 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/Lib/test/test_urlparse.py b/Lib/test/test_urlparse.py |
| 16 | index 73b0228ea8e3..1830d0b28688 100644 |
| 17 | --- a/Lib/test/test_urlparse.py |
| 18 | +++ b/Lib/test/test_urlparse.py |
| 19 | @@ -644,7 +644,8 @@ def test_urlsplit_normalization(self): |
| 20 | for scheme in [u"http", u"https", u"ftp"]: |
| 21 | for c in denorm_chars: |
| 22 | url = u"{}://netloc{}false.netloc/path".format(scheme, c) |
| 23 | - print "Checking %r" % url |
| 24 | + if test_support.verbose: |
| 25 | + print "Checking %r" % url |
| 26 | with self.assertRaises(ValueError): |
| 27 | urlparse.urlsplit(url) |
| 28 | |