From 21dec386e6c0a205004cf03ebc31e9004c07f144 Mon Sep 17 00:00:00 2001 From: Brian Helba Date: Tue, 30 Sep 2025 16:06:11 -0400 Subject: [PATCH] Flag all warnings as test failures This ensures that all warnings (which were important enough for a library to emit) are affirmatively acted upon. False positive or WONTFIX warnings can always be ignored via `filterwarnings`. --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 520f3ebc0..f1db9a368 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -236,9 +236,9 @@ addopts = [ "--ds=dandiapi.settings.testing", ] filterwarnings = [ - # "error", + "error", # pytest often causes unclosed socket warnings "ignore:unclosed as model type:UserWarning:pytest_factoryboy.fixture", ]