Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61758e3 commit 7cdab88Copy full SHA for 7cdab88
2 files changed
lib/matplotlib/__init__.py
@@ -1472,6 +1472,7 @@ def tk_window_focus():
1472
1473
default_test_modules = [
1474
'matplotlib.tests.test_agg',
1475
+ 'matplotlib.tests.test_afm',
1476
'matplotlib.tests.test_animation',
1477
'matplotlib.tests.test_arrow_patches',
1478
'matplotlib.tests.test_artist',
lib/matplotlib/tests/test_afm.py
@@ -8,9 +8,8 @@
8
def test_nonascii_str():
9
# This tests that we also decode bytes as utf-8 properly.
10
# Else, font files with non ascii caracters fail to load.
11
+ inp_str = "привет"
12
+ byte_str = inp_str.encode("utf8")
13
- if six.PY3:
- string = "привет".encode("utf8")
14
- else:
15
- string = "привет"
16
- afm._to_str(string)
+ ret = afm._to_str(byte_str)
+ assert ret == inp_str
0 commit comments