diff options
Diffstat (limited to 'tests/conftest.py')
-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 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) |