summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-06-29 22:29:15 -0400
committerNed Batchelder <ned@nedbatchelder.com>2018-06-29 22:29:15 -0400
commitef21d19ca4fe3fc0c88a1135721f2dfbc60506f3 (patch)
treed296295f0ea66d5f0c39ef328ef8814e3a95b0f6
parent9472d24cc695ef67e37a96224b8c37818e164ea3 (diff)
downloadpython-coveragepy-git-ef21d19ca4fe3fc0c88a1135721f2dfbc60506f3.tar.gz
ResourceWarning isn't in py2?
-rw-r--r--tests/conftest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index ecfeaf24..666dcf76 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -28,5 +28,5 @@ def set_warnings():
category=DeprecationWarning,
message="The value of convert_charrefs will become True in 3.5.",
)
- if env.PYPY:
+ if env.PYPY and env.PY3:
warnings.filterwarnings("ignore", r".*unclosed file", category=ResourceWarning)