diff --git a/tests/test_internals_database.py b/tests/test_internals_database.py index 7b4f3f9d4f..eb842c968e 100644 --- a/tests/test_internals_database.py +++ b/tests/test_internals_database.py @@ -557,6 +557,7 @@ def create_shared_table(conn): conn.execute( "create temporary table created_by_isolated (id integer primary key)" ) + assert table_exists(conn, "created_by_isolated") # Also confirm that created_by_write does not exist return table_exists(conn, "created_by_write") @@ -573,6 +574,8 @@ def create_shared_table(conn): # created_by_isolated should not exist, even in write connection assert not await db.execute_write_fn(table_exists_checker("created_by_isolated")) + # ... and a second call to isolated should not see that connection either + assert not await db.execute_isolated_fn(table_exists_checker("created_by_isolated")) @pytest.mark.asyncio async def test_mtime_ns(db):