Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
e7139549
Commit
e7139549
authored
Mar 27, 2019
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence the dnspython warnings.
parent
a367d911
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/gevent/testing/testrunner.py
src/gevent/testing/testrunner.py
+8
-1
No files found.
src/gevent/testing/testrunner.py
View file @
e7139549
...
...
@@ -353,7 +353,10 @@ def print_list(lst):
log
(
' - %s'
,
name
)
def
_setup_environ
(
debug
=
False
):
if
'PYTHONWARNINGS'
not
in
os
.
environ
and
not
sys
.
warnoptions
:
if
(
'PYTHONWARNINGS'
not
in
os
.
environ
and
(
not
sys
.
warnoptions
# Python 3.7 goes from [] to ['default'] for nothing
or
sys
.
warnoptions
==
[
'default'
])):
# action:message:category:module:line
os
.
environ
[
'PYTHONWARNINGS'
]
=
','
.
join
([
...
...
@@ -373,6 +376,10 @@ def _setup_environ(debug=False):
'ignore:::importlib._bootstrap_external:'
,
# importing ABCs from collections, not collections.abc
'ignore:::pkg_resources._vendor.pyparsing:'
,
'ignore:::dns.namedict:'
,
# dns.hash itself is being deprecated, importing it raises the warning;
# we don't import it, but dnspython still does
'ignore:::dns.hash:'
,
])
if
'PYTHONFAULTHANDLER'
not
in
os
.
environ
:
...
...
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