diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2018-06-29 22:29:15 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-10-04 08:15:42 -0400 |
| commit | 3271c3ad1a6ee4451819fc17be226605f823956f (patch) | |
| tree | bde8b7b542d3744b870964d7faf224f6714d5e4c | |
| parent | 3e24e2866f87eb38d5b6f22fb192fb2cb7781c85 (diff) | |
| download | python-coveragepy-git-3271c3ad1a6ee4451819fc17be226605f823956f.tar.gz | |
ResourceWarning isn't in py2?
(cherry picked from commit ef21d19ca4fe3fc0c88a1135721f2dfbc60506f3)
| -rw-r--r-- | tests/conftest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index a2de4d9e..302dfb52 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) |
