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

Skip to content

Commit 0f0e41a

Browse files
committed
More python 3.4 compatibility
1 parent a130ba7 commit 0f0e41a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/matplotlib/tests/test_dviread.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ def test_PsfontsMap(monkeypatch):
2222
key = ('TeXfont%d' % n).encode('ascii')
2323
entry = fontmap[key]
2424
assert entry.texname == key
25-
assert entry.psname == b'PSfont%d' % n
25+
assert entry.psname == ('PSfont%d' % n).encode('ascii')
2626
if n not in [3, 5]:
27-
assert entry.encoding == b'font%d.enc' % n
27+
assert entry.encoding == ('font%d.enc' % n).encode('ascii')
2828
elif n == 3:
2929
assert entry.encoding == b'enc3.foo'
3030
# We don't care about the encoding of TeXfont5, which specifies
3131
# multiple encodings.
3232
if n not in [1, 5]:
33-
assert entry.filename == b'font%d.pfa' % n
33+
assert entry.filename == ('font%d.pfa' % n).encode('ascii')
3434
else:
35-
assert entry.filename == b'font%d.pfb' % n
35+
assert entry.filename == ('font%d.pfb' % n).encode('ascii')
3636
if n == 4:
3737
assert entry.effects == {'slant': -0.1, 'extend': 2.2}
3838
else:

0 commit comments

Comments
 (0)