diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-09-23 22:11:46 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-09-23 22:11:46 +0200 |
| commit | 43c7f8c3a3cfaec001a76b1b683de3cc47eb2d2f (patch) | |
| tree | 07179656d0405c43f319c1bb8ac2c5491cb72c69 | |
| parent | 874908e3bba8538d1c108e1b38f9d9519c6e5416 (diff) | |
[py3] Fixed unicode string in geoapp test
| -rw-r--r-- | django/contrib/gis/tests/geoapp/test_regress.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/django/contrib/gis/tests/geoapp/test_regress.py b/django/contrib/gis/tests/geoapp/test_regress.py index fffd7d3cab..0e9c5c44a3 100644 --- a/django/contrib/gis/tests/geoapp/test_regress.py +++ b/django/contrib/gis/tests/geoapp/test_regress.py @@ -1,4 +1,5 @@ -from __future__ import absolute_import +# -*- encoding: utf-8 -*- +from __future__ import absolute_import, unicode_literals from datetime import datetime @@ -26,7 +27,7 @@ class GeoRegressionTests(TestCase): def test_kmz(self): "Testing `render_to_kmz` with non-ASCII data. See #11624." - name = '\xc3\x85land Islands'.decode('iso-8859-1') + name = "Ă…land Islands" places = [{'name' : name, 'description' : name, 'kml' : '<Point><coordinates>5.0,23.0</coordinates></Point>' |
