fix: Fixed figure not closed in live report
This commit is contained in:
1 parent
8a1d0e94ee
commit
9235f5019c
1 file changed
+1
@@ -629,6 +629,7 @@ class LiveReportGenerator:
|
||||
|
||||
buf = io.BytesIO()
|
||||
fig.savefig(buf)
|
||||
plt.close(fig)
|
||||
buf.seek(0)
|
||||
return Image.open(buf)
|
||||
|
||||
|
||||
Reference in new issue
Block a user