Try shutting down executor in tests to free up thread local SQLite connections, refs #1843

This commit is contained in:
Simon Willison 2022-10-25 21:04:39 -07:00
commit c36a74ece1

View file

@ -166,6 +166,7 @@ def make_app_client(
# Close the connection to avoid "too many open files" errors
conn.close()
os.remove(filepath)
ds.executor.shutdown()
@pytest.fixture(scope="session")