diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -618,21 +618,21 @@ def test_method_deprecations(self): req = Request("http://www.example.com") - with support.check_warnings(('', DeprecationWarning)): + with support.check_warnings(('', DeprecationWarning), quiet=True): req.add_data("data") - with support.check_warnings(('', DeprecationWarning)): + with support.check_warnings(('', DeprecationWarning), quiet=True): req.has_data() - with support.check_warnings(('', DeprecationWarning)): + with support.check_warnings(('', DeprecationWarning), quiet=True): req.get_data() - with support.check_warnings(('', DeprecationWarning)): + with support.check_warnings(('', DeprecationWarning), quiet=True): req.get_full_url() - with support.check_warnings(('', DeprecationWarning)): + with support.check_warnings(('', DeprecationWarning), quiet=True): req.get_host() - with support.check_warnings(('', DeprecationWarning)): + with support.check_warnings(('', DeprecationWarning), quiet=True): req.get_selector() - with support.check_warnings(('', DeprecationWarning)): + with support.check_warnings(('', DeprecationWarning), quiet=True): req.is_unverifiable() - with support.check_warnings(('', DeprecationWarning)): + with support.check_warnings(('', DeprecationWarning), quiet=True): req.get_origin_req_host() def sanepathname2url(path):