kopia lustrzana https://github.com/simonw/datasette
Workaround for 'too many open files' error, refs #1843
rodzic
fdf9891c3f
commit
6887c12ea3
|
@ -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")
|
||||
|
|
Ładowanie…
Reference in New Issue