Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6336f2d commit 4886ea9Copy full SHA for 4886ea9
1 file changed
unit/memleak.py
@@ -3,6 +3,7 @@
3
from __future__ import print_function
4
5
import gc
6
+from io import BytesIO
7
8
try:
9
import tracemalloc
@@ -110,7 +111,7 @@ def __call__(self):
110
111
ax = fig.add_subplot(224)
112
ax.pcolor(10 * np.random.rand(50, 50))
113
- fig.savefig('tmp', dpi=75)
114
+ fig.savefig(BytesIO(), dpi=75)
115
plt.close(1)
116
117
0 commit comments