Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
32994d34
Commit
32994d34
authored
Jun 11, 2014
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress a couple more DeprecationWarnings in the test suite.
parent
b51dc1f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Lib/test/test_urllibnet.py
Lib/test/test_urllibnet.py
+2
-1
No files found.
Lib/test/test_urllibnet.py
View file @
32994d34
...
...
@@ -91,6 +91,7 @@ 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
):
with
self
.
assertWarns
(
DeprecationWarning
):
open_url
=
urllib
.
request
.
FancyURLopener
().
open
(
URL
)
try
:
code
=
open_url
.
getcode
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment