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

Skip to content

Commit a130ba7

Browse files
committed
Attempted fix for Python 3.4 compatibility
1 parent 4874e4e commit a130ba7

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
@@ -19,7 +19,7 @@ def test_PsfontsMap(monkeypatch):
1919
fontmap = dr.PsfontsMap(filename)
2020
# Check all properties of a few fonts
2121
for n in [1, 2, 3, 4, 5]:
22-
key = b'TeXfont%d' % n
22+
key = ('TeXfont%d' % n).encode('ascii')
2323
entry = fontmap[key]
2424
assert entry.texname == key
2525
assert entry.psname == b'PSfont%d' % n

0 commit comments

Comments
 (0)