When I added unpack_buffer_archive, in code review people said
it was redundant with unpack_buffer and they should be merged.
I said merging was too annoying. They were right. This merges
the functions together into a function with a 38 line docstring
and a 18 line implementation.
Merge together unpack_buffer and unpack_buffer_archive. When I added unpack_buffer_archive, in code review people said
it was redundant with unpack_buffer and they should be merged.
I said merging was too annoying. They were right. This merges
the functions together into a function with a 38 line docstring
and a 18 line implementation.
from pyodide_build.testing import run_in_pyodide


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

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

from pyodide_build.testing import run_in_pyodide


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

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