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
d0962083
Commit
d0962083
authored
Apr 08, 2015
by
Berker Peksag
Browse files
Options
Browse Files
Download
Plain Diff
Skip nntplib tests when transient errors captured.
parents
716b3d3e
52c0c338
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Lib/test/support/__init__.py
Lib/test/support/__init__.py
+5
-0
No files found.
Lib/test/support/__init__.py
View file @
d0962083
...
...
@@ -13,6 +13,7 @@ import gc
import
importlib
import
importlib.util
import
logging.handlers
import
nntplib
import
os
import
platform
import
re
...
...
@@ -1341,6 +1342,10 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
if
timeout
is
not
None
:
socket
.
setdefaulttimeout
(
timeout
)
yield
except
nntplib
.
NNTPTemporaryError
as
err
:
if
verbose
:
sys
.
stderr
.
write
(
denied
.
args
[
0
]
+
"
\
n
"
)
raise
denied
from
err
except
OSError
as
err
:
# urllib can wrap original socket errors multiple times (!), we must
# unwrap to get at the original error.
...
...
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