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 52a198e commit 1179df7Copy full SHA for 1179df7
lib/matplotlib/tests/test_font_manager.py
@@ -29,9 +29,13 @@ def test_font_priority():
29
30
31
def test_json_serialization():
32
- with tempfile.NamedTemporaryFile() as temp:
33
- json_dump(fontManager, temp.name)
34
- copy = json_load(temp.name)
+ # on windows, we can't open a file twice, so save the name and unlink
+ # manually...
+ with tempfile.NamedTemporaryFile(delete=False) as temp:
35
+ name = temp.name
36
+ json_dump(fontManager, name)
37
+ copy = json_load(name)
38
+ os.remove(name)
39
with warnings.catch_warnings():
40
warnings.filterwarnings('ignore', 'findfont: Font family.*not found')
41
for prop in ({'family': 'STIXGeneral'},
0 commit comments