Skip to content

Commit 58fc4f4

Browse files
committed
Merge pull request #3408 from jenshnielsen/Font_warn
TST : Filter warnings in test suite test_text Modify filter warning regex
2 parents 3c9eba3 + bb25d83 commit 58fc4f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def find_matplotlib_font(**kw):
2222
return FontProperties(fname=path)
2323

2424
from matplotlib.font_manager import FontProperties, findfont
25-
warnings.filterwarnings('ignore', 'findfont: Font family \[\'Foo\'\] '+ \
26-
'not found. Falling back to .',
25+
warnings.filterwarnings('ignore', ('findfont: Font family \[u?\'Foo\'\] '+
26+
'not found. Falling back to .'),
2727
UserWarning,
2828
module='matplotlib.font_manager')
2929
fig = plt.figure()

0 commit comments

Comments
 (0)