gc.collect() before unlinking the db in some tests (#14491)

https://github.com/python/cpython/issues/97641
This commit is contained in:
Kyle Altendorf 2023-02-04 13:05:26 -08:00 committed by GitHub
parent cbbc8b43b8
commit 649e5ac4b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
from __future__ import annotations
import asyncio
import gc
import logging
import signal
import sqlite3
@ -147,6 +148,8 @@ async def setup_full_node(
service.stop()
await service.wait_closed()
if db_path.exists():
# TODO: remove (maybe) when fixed https://github.com/python/cpython/issues/97641
gc.collect()
db_path.unlink()