MAINT Add pytest.mark.xfail_browsers and use it to reduce boilerplate. Use a decorator to indicate which browsers we want to xfail test. This works for `run_in_pyodide` as well as normal tests.
from pyodide_test_runner import run_in_pyodide


@run_in_pyodide(packages=["regex"])
def test_regex():
    import regex

    assert regex.search("o", "foo").end() == 2

from pyodide_test_runner import run_in_pyodide


@run_in_pyodide(packages=["regex"])
def test_regex():
    import regex

    assert regex.search("o", "foo").end() == 2
