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

Skip to content

Commit a8674b3

Browse files
committed
Try to fix the KeyError test
1 parent 254e3df commit a8674b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/tests/test_dviread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def test_PsfontsMap(monkeypatch):
5252
# Missing font
5353
with pytest.raises(KeyError) as exc:
5454
fontmap[b'no-such-font']
55-
assert b'no-such-font' in bytes(exc.value)
55+
assert 'no-such-font' in str(exc.value)
5656

5757

5858
@skip_if_command_unavailable(["kpsewhich", "-version"])

0 commit comments

Comments
 (0)