kopia lustrzana https://github.com/wagtail/wagtail
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
rodzic
edc236cb06
commit
b3aa292110
|
@ -1,3 +1,5 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import json
|
||||
|
||||
import mock
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import json
|
||||
|
||||
import mock
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import json
|
||||
|
||||
import mock
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import json
|
||||
|
||||
import mock
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import datetime
|
||||
import json
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue