diff --git a/trio/tests/test_deprecate.py b/trio/tests/test_deprecate.py index a11e9b8d1..421278f0d 100644 --- a/trio/tests/test_deprecate.py +++ b/trio/tests/test_deprecate.py @@ -16,6 +16,9 @@ @pytest.fixture def recwarn_always(recwarn): warnings.simplefilter("always") + # ResourceWarnings about unclosed sockets can occur nondeterministically + # (during GC) which throws off the tests in this file + warnings.simplefilter("ignore", ResourceWarning) return recwarn