From 758113788fd72b8b3be7a7541a9fb8146c55000f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 13 Dec 2024 08:30:35 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- testing/test_unraisableexception.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testing/test_unraisableexception.py b/testing/test_unraisableexception.py index 65d77c7b63..1d12cc5497 100644 --- a/testing/test_unraisableexception.py +++ b/testing/test_unraisableexception.py @@ -235,6 +235,7 @@ def test_it(): result.assert_outcomes(passed=1) result.stderr.fnmatch_lines("ValueError: del is broken") + @pytest.mark.filterwarnings("default::pytest.PytestUnraisableExceptionWarning") def test_create_task_unraisable_warning_filter(pytester: Pytester) -> None: # see: https://github.com/pytest-dev/pytest/issues/10404 @@ -268,6 +269,7 @@ def test_it(): result.assert_outcomes(passed=1) result.stderr.fnmatch_lines("ValueError: del is broken") + @pytest.mark.filterwarnings("error::pytest.PytestUnraisableExceptionWarning") def test_possibly_none_excinfo(pytester: Pytester) -> None: pytester.makepyfile(