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
2c3cab6f
Commit
2c3cab6f
authored
May 28, 2020
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't get a warning about ResourceWarning on Py2.
That breaks several of the subprocess tests.
parent
a17456ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/gevent/testing/testrunner.py
src/gevent/testing/testrunner.py
+9
-3
No files found.
src/gevent/testing/testrunner.py
View file @
2c3cab6f
...
...
@@ -637,11 +637,17 @@ def _setup_environ(debug=False):
# option is performed.
# - action is one of : ignore, default, all, module, once, error
os
.
environ
[
'PYTHONWARNINGS'
]
=
','
.
join
([
# Enable default warnings such as ResourceWarning.
# Enable default warnings such as ResourceWarning.
# ResourceWarning doesn't exist on Py2, so don't put it
# in there to avoid a warnnig.
defaults
=
[
'default'
,
'default::DeprecationWarning'
,
'default::ResourceWarning'
,
]
if
not
PY2
:
defaults
.
append
(
'default::ResourceWarning'
)
os
.
environ
[
'PYTHONWARNINGS'
]
=
','
.
join
(
defaults
+
[
# On Python 3[.6], the system site.py module has
# "open(fullname, 'rU')" which produces the warning that
# 'U' is deprecated, so ignore warnings from site.py
...
...
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