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

Skip to content

Commit 41e1047

Browse files
committed
catch empty won def in unicode won test
1 parent 49ad267 commit 41e1047

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/tests/test_backend_svg.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,10 @@ def test_unicode_won():
226226
fd.close()
227227

228228
won_id = 'Computer_Modern_Roman-142'
229+
empty_def = '<path id="{0}"/>'.format(won_id)
229230
expected_def = 'id="{0}"'.format(won_id)
230231
expected_ref = 'xlink:href="#{0}"'.format(won_id)
231-
print(buf)
232+
233+
assert empty_def not in buf
232234
assert expected_def in buf
233235
assert expected_ref in buf

0 commit comments

Comments
 (0)