Skip to content

Commit a1037dc

Browse files
test: Trigger Pytest failure when an unraisable exception occurs
1 parent b1a8b63 commit a1037dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ commands =
909909
; Running `pytest` as an executable suffers from an import error
910910
; when loading tests in scenarios. In particular, django fails to
911911
; load the settings from the test module.
912-
python -m pytest {env:TESTPATH} -o junit_suite_name={envname} {posargs}
912+
python -m pytest -W error::pytest.PytestUnraisableExceptionWarning {env:TESTPATH} -o junit_suite_name={envname} {posargs}
913913

914914
[testenv:linters]
915915
commands =

0 commit comments

Comments
 (0)