diff options
| author | R David Murray <rdmurray@bitdance.com> | 2014-06-11 17:09:43 -0400 |
|---|---|---|
| committer | R David Murray <rdmurray@bitdance.com> | 2014-06-11 17:09:43 -0400 |
| commit | 842f00e72509db50957ceb00d289b305dbc5a0a5 (patch) | |
| tree | 57339364cc6bc78b143473f9518f957e7dbcbe0e /Lib/test | |
| parent | 93da9b5e578a1bd29bcd915a8adc8353596b3a4d (diff) | |
| download | cpython-git-842f00e72509db50957ceb00d289b305dbc5a0a5.tar.gz | |
Suppress a couple more DeprecationWarnings in the test suite.
Diffstat (limited to 'Lib/test')
| -rw-r--r-- | Lib/test/test_urllibnet.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py index 4c8ba2d22c..42ebb6e60b 100644 --- a/Lib/test/test_urllibnet.py +++ b/Lib/test/test_urllibnet.py @@ -91,7 +91,8 @@ class urlopenNetworkTests(unittest.TestCase): # test getcode() with the fancy opener to get 404 error codes URL = "http://www.example.com/XXXinvalidXXX" with support.transient_internet(URL): - open_url = urllib.request.FancyURLopener().open(URL) + with self.assertWarns(DeprecationWarning): + open_url = urllib.request.FancyURLopener().open(URL) try: code = open_url.getcode() finally: |
