fix: Fixed figure not closed in live report
This commit is contained in:
@@ -629,6 +629,7 @@ class LiveReportGenerator:
|
|||||||
|
|
||||||
buf = io.BytesIO()
|
buf = io.BytesIO()
|
||||||
fig.savefig(buf)
|
fig.savefig(buf)
|
||||||
|
plt.close(fig)
|
||||||
buf.seek(0)
|
buf.seek(0)
|
||||||
return Image.open(buf)
|
return Image.open(buf)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user