Skip to content

Commit afa0472

Browse files
committed
gc.collect() before unlinking the db in some tests
python/cpython#97641
1 parent 58c6691 commit afa0472

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

chia/simulator/setup_services.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import asyncio
4+
import gc
45
import logging
56
import signal
67
import sqlite3
@@ -147,6 +148,8 @@ async def setup_full_node(
147148
service.stop()
148149
await service.wait_closed()
149150
if db_path.exists():
151+
# TODO: remove (maybe) when fixed https://github.com/python/cpython/issues/97641
152+
gc.collect()
150153
db_path.unlink()
151154

152155

0 commit comments

Comments
 (0)