Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b7b3f32

Browse files
Update test_rcparams.py
1 parent dc17fe2 commit b7b3f32

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

lib/matplotlib/tests/test_rcparams.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -476,10 +476,11 @@ def test_if_rctemplate_would_be_valid():
476476
'testrcvalid.temp')
477477
with open(fname, "w") as f:
478478
f.writelines(newlines)
479-
480-
dic = mpl.rc_params_from_file(fname,
481-
fail_on_error=True,
482-
use_default_template=False)
479+
with pytest.warns(None) as record:
480+
dic = mpl.rc_params_from_file(fname,
481+
fail_on_error=True,
482+
use_default_template=False)
483+
assert len(record) == 0
483484
os.remove(fname)
484485
#d1 = set(dic.keys())
485486
#d2 = set(matplotlib.defaultParams.keys())

0 commit comments

Comments
 (0)