diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-08-18 11:30:48 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-08-18 11:36:09 +0200 |
| commit | 85e7a5e140104e7402ba51c313c9e53cb60d96f2 (patch) | |
| tree | 4e6fc51997d3fd7bcb413c45bbb2645e0aa3bf06 /tests | |
| parent | 2284419a2c7b5da643e53754e3bf82637b52017b (diff) | |
[py3] Stopped attempting to translate bytes.
That goes actively against the goal of cleaning string handling.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/i18n/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/regressiontests/i18n/tests.py b/tests/regressiontests/i18n/tests.py index 9ca66bdb9b..1a8ff25ff3 100644 --- a/tests/regressiontests/i18n/tests.py +++ b/tests/regressiontests/i18n/tests.py @@ -232,7 +232,7 @@ class TranslationTests(TestCase): """ Translating a string requiring no auto-escaping shouldn't change the "safe" status. """ - s = mark_safe(b'Password') + s = mark_safe(str('Password')) self.assertEqual(SafeString, type(s)) with translation.override('de', deactivate=True): self.assertEqual(SafeUnicode, type(ugettext(s))) |
