From 72db599ae03fabe2e9f999999e258edc1a99ed59 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 26 Aug 2022 22:50:59 -0700 Subject: [PATCH] Fix load extension tests, refs #470 --- tests/test_cli.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 5a9f1b7..24f36ed 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -2298,17 +2298,16 @@ def test_duplicate_table(tmpdir): assert list(db["one"].rows) == list(db["two"].rows) -@pytest.mark.asyncio @pytest.mark.skipif(not _has_compiled_ext(), reason="Requires compiled ext.c") @pytest.mark.parametrize( "entrypoint,should_pass,should_fail", ( - (None, ("a", "b", "c"), ()), + (None, ("a",), ("b", "c")), ("sqlite3_ext_b_init", ("b"), ("a", "c")), ("sqlite3_ext_c_init", ("c"), ("a", "b")), ), ) -async def test_load_extension(entrypoint, should_pass, should_fail): +def test_load_extension(entrypoint, should_pass, should_fail): ext = COMPILED_EXTENSION_PATH if entrypoint: ext += ":" + entrypoint