Skip to content

Commit ec1447d

Browse files
Update lib/matplotlib/tests/test_mathtext.py
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
1 parent 7c91d72 commit ec1447d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_mathtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def test_mathtext_fallback(fallback, fontlist):
453453
tspans = (ET.fromstring(buff.getvalue())
454454
.findall(".//{http://www.w3.org/2000/svg}tspan[@style]"))
455455
char_fonts = [
456-
re.search(r"font-family: '([\w ]+)';?", tspan.attrib["style"]).group(1)
456+
re.search(r"font-family: '([\w ]+)'", tspan.attrib["style"]).group(1)
457457
for tspan in tspans]
458458
assert char_fonts == fontlist, f'Expected {fontlist}, got {char_fonts}'
459459
mpl.font_manager.fontManager.ttflist.pop()

0 commit comments

Comments
 (0)