Skip to content
Features
Business
Explore
Marketplace
Pricing
This repository
Sign in
or
Sign up
Watch
440
Star
5,570
Fork
2,666
matplotlib
/
matplotlib
Code
Issues
992
Pull requests
229
Projects
5
Wiki
Insights
Pulse
Graphs
Save SVG test directly to file instead of its name.
#7668
Merged
tacaswell
merged 1 commit into
matplotlib
:
master
from
QuLogic
:
fix-svg-test-windows
Dec 23, 2016
Conversation
3
Commits
1
Files changed
1
Changes from
all commits
Commits
Show all changes
1 commit
Select commit
2679ddd
Save SVG test directly to file instead of its name.
QuLogic
Dec 22, 2016
1 file
Jump to file
No files or symbols found.
+2
−2
test_backend_svg.py
lib/matplotlib/tests/test_backend_svg.py
+2
−2
Unified
Split
Show comments
View
4
lib/matplotlib/tests/test_backend_svg.py
@@ -217,8 +217,8 @@ def test_missing_psfont(mock):
rc(
'
text
'
,
usetex
=
True
)
fig, ax
=
plt.subplots()
ax.text(
0.5
,
0.5
,
'
hello
'
)
-
with
tempfile.
NamedTemporaryFile(
suffix
=
'
.svg
'
)
as
tmpfile:
- fig.savefig(tmpfile
.name
)
+
with
tempfile.
TemporaryFile(
)
as
tmpfile:
+ fig.savefig(tmpfile
,
format
=
'
svg
'
)
if
__name__
==
'
__main__
'
:
Toggle all file notes
You can't perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.