Add loadDynlib to micropip._compat (split off from #2591). More work split off of #2591 because #2591 mysteriously fails *all* the github actions tests, even though #2591 currently only changes micropip and not all tests load micropip.
from pyodide_test_runner import run_in_pyodide


@run_in_pyodide(packages=["Jinja2"])
def test_jinja2(selenium):
    import jinja2

    template = jinja2.Template("Hello {{ name }}!")
    content = template.render(name="Zach")
    assert content == "Hello Zach!"

from pyodide_test_runner import run_in_pyodide


@run_in_pyodide(packages=["Jinja2"])
def test_jinja2(selenium):
    import jinja2

    template = jinja2.Template("Hello {{ name }}!")
    content = template.render(name="Zach")
    assert content == "Hello Zach!"
