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.
2 parents ce92859 + 343f5fc commit 9278668Copy full SHA for 9278668
1 file changed
lib/matplotlib/tests/test_afm.py
@@ -0,0 +1,13 @@
1
+import matplotlib.afm as afm
2
+import six
3
+
4
5
+def test_nonascii_str():
6
+ # This tests that we also decode bytes as utf-8 properly.
7
+ # Else, font files with non ascii caracters fail to load.
8
9
+ if six.PY3:
10
+ string = "привет".encode("utf8")
11
+ else:
12
+ string = "привет"
13
+ afm._to_str(string)
0 commit comments