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

Skip to content

Commit 09bf2dd

Browse files
committed
unicode test runs
1 parent be48e7d commit 09bf2dd

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lib/matplotlib/tests/test_rcsetup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ def test_template():
2727
def test_unicode():
2828
# unicode formatted valid strings should validate.
2929
for k, v in mpl.rcsetup.defaultParams.iteritems():
30-
assert k == v[1](unicode(v[0]))
31-
assert mpl.rcParams[k] == v[0]
30+
if v[0] != v[1](unicode(v[0])):
31+
print "Expected : ", v[0]
32+
print "Actual : ", v[1](unicode(v[0]))
33+
assert v[0] == v[1](unicode(v[0]))
34+
3235

3336
if __name__ == '__main__':
3437
import nose

0 commit comments

Comments
 (0)