Workaround for 'too many open files' error, refs #1843

This commit is contained in:
Simon Willison 2022-10-23 15:13:02 -07:00
commit 6887c12ea3

View file

@ -163,6 +163,9 @@ def make_app_client(
crossdb=crossdb,
)
yield TestClient(ds)
# Close the connection to avoid "too many open files" errors
conn.close()
os.remove(filepath)
@pytest.fixture(scope="session")