[Python-checkins] cpython (3.4): Suppress a couple more DeprecationWarnings in the test suite.
serhiy.storchaka
python-checkins at python.org
Fri Apr 10 12:30:59 CEST 2015
https://hg.python.org/cpython/rev/e40f5ef53819
changeset: 95515:e40f5ef53819
branch: 3.4
parent: 95513:edc5b77dc29a
user: R David Murray <rdmurray at bitdance.com>
date: Wed Jun 11 17:09:43 2014 -0400
summary:
Suppress a couple more DeprecationWarnings in the test suite.
files:
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
--- a/Lib/test/test_urllibnet.py
+++ b/Lib/test/test_urllibnet.py
@@ -91,7 +91,8 @@
# 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:
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list