mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-19 23:21:46 +03:00
gc.collect() before unlinking the db in some tests (#14491)
https://github.com/python/cpython/issues/97641
This commit is contained in:
parent
cbbc8b43b8
commit
649e5ac4b0
@ -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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user