Address comments

This commit is contained in:
Alex Adamson
2019-01-10 15:45:48 -05:00
parent ac2bf10fe2
commit 0ee219dc48
3 changed files with 4 additions and 5 deletions

View File

@@ -825,9 +825,8 @@ class TestWarnings:
# The socket itself will end up attached as a value in
# _WARNING_DETAIL. We need to test that it is not serialized
# (it can't be, so the test will fail if we try to).
@pytest.mark.filterwarnings('always')
def test_func(tmpdir):
warnings.resetwarnings()
warnings.simplefilter('always', ResourceWarning)
abuse_socket()
gc.collect()
"""