diff --git a/tests/runtime/html/test_link_funcs.py b/tests/runtime/html/test_link_funcs.py index a9ee62e..62f11e9 100644 --- a/tests/runtime/html/test_link_funcs.py +++ b/tests/runtime/html/test_link_funcs.py @@ -352,9 +352,12 @@ def test_handle_failures_wrong_type( # Not testing resolve_base_href type, as it is a truthy/falsy argument # that can be anything + # Falsy values got short circuited by urljoin() and never raises @settings(suppress_health_check=[HealthCheck.too_slow], max_examples=500) @given(t=_st.all_instances_except_of_type(str, NoneType).filter(bool)) @pytest.mark.slow + @pytest.mark.filterwarnings("ignore:NotImplemented should not be used in a boolean context:DeprecationWarning") # noqa: E501 + @pytest.mark.filterwarnings("ignore:The behavior of this method will change .+:FutureWarning") # noqa: E501 def test_base_href( self, disposable_html_with_base_href: HtmlElement, t: Any ) -> None: @@ -412,6 +415,8 @@ def test_link_repl_func_input_arg( @settings(suppress_health_check=[HealthCheck.too_slow], max_examples=500) @given(t=_st.all_instances_except_of_type(str, NoneType).filter(bool)) @pytest.mark.slow + @pytest.mark.filterwarnings("ignore:NotImplemented should not be used in a boolean context:DeprecationWarning") # noqa: E501 + @pytest.mark.filterwarnings("ignore:The behavior of this method will change .+:FutureWarning") # noqa: E501 def test_base_href( self, disposable_html_with_base_href: HtmlElement, t: Any ) -> None: