Fix uname to report emscripten version accurately. More investigation into gha failure on #2591.
from pyodide_test_runner import run_in_pyodide


@run_in_pyodide(packages=["pyyaml"])
def test_pyyaml():
    import yaml
    from yaml import CLoader as Loader

    document = """
    - Hesperiidae
    - Papilionidae
    - Apatelodidae
    - Epiplemidae
    """
    loaded = yaml.load(document, Loader=Loader)
    assert loaded == ["Hesperiidae", "Papilionidae", "Apatelodidae", "Epiplemidae"]

from pyodide_test_runner import run_in_pyodide


@run_in_pyodide(packages=["pyyaml"])
def test_pyyaml():
    import yaml
    from yaml import CLoader as Loader

    document = """
    - Hesperiidae
    - Papilionidae
    - Apatelodidae
    - Epiplemidae
    """
    loaded = yaml.load(document, Loader=Loader)
    assert loaded == ["Hesperiidae", "Papilionidae", "Apatelodidae", "Epiplemidae"]
