Skip to content

Commit

Permalink
Fixed tests for Python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Aug 15, 2020
1 parent fa335d7 commit fb4cdb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_saved_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
def db_path(tmpdir):
data = tmpdir / "data.db"
sqlite3.connect(data).execute("vacuum")
yield data
yield str(data)


@pytest.fixture
Expand Down Expand Up @@ -91,5 +91,5 @@ async def test_save_query_authenticated_actor(ds):

@pytest.mark.asyncio
async def test_dont_crash_on_immutable_database(db_path):
ds = Datasette([], immutables=[str(db_path)])
ds = Datasette([], immutables=[db_path])
await ds.invoke_startup()

0 comments on commit fb4cdb7

Please sign in to comment.