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

master
Simon Willison 2022-10-23 15:13:02 -07:00
rodzic fdf9891c3f
commit 6887c12ea3
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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")