+ fix unicode test issue
This commit is contained in:
parent
9d6d842879
commit
7eeaf63356
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ def test_unicode_regex_replace():
|
||||||
f = mapnik2.Feature(0)
|
f = mapnik2.Feature(0)
|
||||||
f["name"] = 'Québec'
|
f["name"] = 'Québec'
|
||||||
expr = mapnik2.Expression("[name].replace('(\B)|( )','$1 ')")
|
expr = mapnik2.Expression("[name].replace('(\B)|( )','$1 ')")
|
||||||
eq_(expr.evaluate(f),'Q u é b e c')
|
eq_(expr.evaluate(f), u'Q u é b e c')
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
[eval(run)() for run in dir() if 'test_' in run]
|
[eval(run)() for run in dir() if 'test_' in run]
|
||||||
|
|
Loading…
Reference in a new issue