mirror of https://github.com/django/django.git
[py3] Fixed unicode string in geoapp test
This commit is contained in:
parent
874908e3bb
commit
43c7f8c3a3
|
@ -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>'
|
||||||
|
|
Loading…
Reference in New Issue