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
ce8f5ded
Commit
ce8f5ded
authored
Mar 22, 2015
by
Ned Deily
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #22289: Prevent test_urllib2net failures due to ftp connection timeout.
parent
d357b89f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Lib/test/support/__init__.py
Lib/test/support/__init__.py
+2
-1
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/support/__init__.py
View file @
ce8f5ded
...
@@ -1327,7 +1327,8 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
...
@@ -1327,7 +1327,8 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
(
isinstance
(
err
,
urllib
.
error
.
HTTPError
)
and
(
isinstance
(
err
,
urllib
.
error
.
HTTPError
)
and
500
<=
err
.
code
<=
599
)
or
500
<=
err
.
code
<=
599
)
or
(
isinstance
(
err
,
urllib
.
error
.
URLError
)
and
(
isinstance
(
err
,
urllib
.
error
.
URLError
)
and
"ConnectionRefusedError"
in
err
.
reason
)
or
((
"ConnectionRefusedError"
in
err
.
reason
)
or
(
"TimeoutError"
in
err
.
reason
)))
or
n
in
captured_errnos
):
n
in
captured_errnos
):
if
not
verbose
:
if
not
verbose
:
sys
.
stderr
.
write
(
denied
.
args
[
0
]
+
"
\
n
"
)
sys
.
stderr
.
write
(
denied
.
args
[
0
]
+
"
\
n
"
)
...
...
Misc/NEWS
View file @
ce8f5ded
...
@@ -455,6 +455,8 @@ Tests
...
@@ -455,6 +455,8 @@ Tests
-
Issue
#
23345
:
Prevent
test_ssl
failures
with
large
OpenSSL
patch
level
-
Issue
#
23345
:
Prevent
test_ssl
failures
with
large
OpenSSL
patch
level
values
(
like
0.9.8
zc
).
values
(
like
0.9.8
zc
).
-
Issue
#
22289
:
Prevent
test_urllib2net
failures
due
to
ftp
connection
timeout
.
Build
Build
-----
-----
...
...
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