Skip to content

Commit bb084f2

Browse files
committed
tests/test_window.py(fix): Suppress secondary deprecation warning in test
why: The test `test_deprecated_window_methods_emit_warning[show_window_option_global]` triggered two warnings: the expected one (Window method deprecated) and an unexpected secondary one (g argument deprecated). The secondary warning leaked to pytest output. what: - Add @pytest.mark.filterwarnings to ignore "g argument is deprecated" warning - Test still validates the primary deprecation warning via pytest.warns()
1 parent 7b1d661 commit bb084f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_window.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,7 @@ def _build_deprecated_method_params() -> list[t.Any]:
765765
]
766766

767767

768+
@pytest.mark.filterwarnings("ignore:g argument is deprecated:DeprecationWarning")
768769
@pytest.mark.parametrize("test_case", _build_deprecated_method_params())
769770
def test_deprecated_window_methods_emit_warning(
770771
session: Session,

0 commit comments

Comments
 (0)