diff --git a/tests/fixtures.py b/tests/fixtures.py index 5a875cd2..13a3dffa 100644 --- a/tests/fixtures.py +++ b/tests/fixtures.py @@ -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")