8000
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.
2 parents 7131876 + 2679ddd commit 8b80068Copy full SHA for 8b80068
lib/matplotlib/tests/test_backend_svg.py
@@ -217,8 +217,8 @@ def test_missing_psfont(mock):
217
rc('text', usetex=True)
218
fig, ax = plt.subplots()
219
ax.text(0.5, 0.5, 'hello')
220
- with tempfile.NamedTemporaryFile(suffix='.svg') as tmpfile:
221
- fig.savefig(tmpfile.name)
+ with tempfile.TemporaryFile() as tmpfile:
+ fig.savefig(tmpfile, format='svg')
222
223
224
if __name__ == '__main__':
0 commit comments