From 49619fc0ab467f5ce7a6eed1404855e1201cd1ed Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Thu, 1 Nov 2018 16:39:29 -0700 Subject: [PATCH] Error on warning, unless it's a ResourceWarning --- pytest.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pytest.ini b/pytest.ini index 4a1dcca16..7d0b19223 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,4 +1,6 @@ [pytest] addopts = --numprocesses auto --pyargs +# ResourceWarnings are ignored as errors, since they're raised at close filterwarnings = error + always::ResourceWarning