[py3] Fixed unicode string in geoapp test

This commit is contained in:
Claude Paroz 2012-09-23 22:11:46 +02:00
parent 874908e3bb
commit 43c7f8c3a3
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
from __future__ import absolute_import # -*- encoding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from datetime import datetime from datetime import datetime
@ -26,7 +27,7 @@ class GeoRegressionTests(TestCase):
def test_kmz(self): def test_kmz(self):
"Testing `render_to_kmz` with non-ASCII data. See #11624." "Testing `render_to_kmz` with non-ASCII data. See #11624."
name = '\xc3\x85land Islands'.decode('iso-8859-1') name = "Åland Islands"
places = [{'name' : name, places = [{'name' : name,
'description' : name, 'description' : name,
'kml' : '<Point><coordinates>5.0,23.0</coordinates></Point>' 'kml' : '<Point><coordinates>5.0,23.0</coordinates></Point>'