Use unicode_literals in some tests missing it

These tests sent some Python 2 `str`s to unidecode via taggit, which
raised a RuntimeWarning. These strings should be unicode, and are
unicode when they come from Django outside of the tests.

unicode_literals should be added to all Python files to ensure
consistent handling of strings across Python versions, but that is a
larger and more controversial change.
pull/2392/merge
Tim Heap 2016-03-24 11:36:08 +11:00 zatwierdzone przez Karl Hobley
rodzic edc236cb06
commit b3aa292110
5 zmienionych plików z 10 dodań i 0 usunięć

Wyświetl plik

@ -1,3 +1,5 @@
from __future__ import unicode_literals
import json
import mock

Wyświetl plik

@ -1,3 +1,5 @@
from __future__ import unicode_literals
import json
import mock

Wyświetl plik

@ -1,3 +1,5 @@
from __future__ import unicode_literals
import json
import mock

Wyświetl plik

@ -1,3 +1,5 @@
from __future__ import unicode_literals
import json
import mock

Wyświetl plik

@ -1,3 +1,5 @@
from __future__ import unicode_literals
import datetime
import json