From e4542d77bedeccf1308c015062da08a741870cdc Mon Sep 17 00:00:00 2001 From: Alexander Alderman Webb Date: Tue, 4 Aug 2026 09:44:13 +0200 Subject: [PATCH] test: Fail on UserWarning --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 726508e0e0..238c4b1b82 100644 --- a/tox.ini +++ b/tox.ini @@ -18602,4 +18602,4 @@ commands = ; Running `pytest` as an executable suffers from an import error ; when loading tests in scenarios. In particular, django fails to ; load the settings from the test module. - python -m pytest -W error::pytest.PytestUnraisableExceptionWarning {env:TESTPATH:{env:_TESTPATH}} -o junit_suite_name={envname} --junitxml=.junitxml-{envname} {posargs} + python -m pytest -W error::UserWarning -W error::pytest.PytestUnraisableExceptionWarning {env:TESTPATH:{env:_TESTPATH}} -o junit_suite_name={envname} --junitxml=.junitxml-{envname} {posargs}