fix: Fixed figure not closed in live report

This commit is contained in:
LWR 2023-02-03 00:38:29 +08:00
parent 8a1d0e94ee
commit 9235f5019c

View File

@ -629,6 +629,7 @@ class LiveReportGenerator:
buf = io.BytesIO()
fig.savefig(buf)
plt.close(fig)
buf.seek(0)
return Image.open(buf)