diff options
Diffstat (limited to 'tests/regressiontests/views/__init__.py')
| -rw-r--r-- | tests/regressiontests/views/__init__.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/regressiontests/views/__init__.py b/tests/regressiontests/views/__init__.py index 1e12679af2..1193ffe010 100644 --- a/tests/regressiontests/views/__init__.py +++ b/tests/regressiontests/views/__init__.py @@ -1,10 +1,11 @@ # -*- coding: utf-8 -*- +from __future__ import unicode_literals class BrokenException(Exception): pass -except_args = (b'Broken!', # plain exception with ASCII text - u'¡Broken!', # non-ASCII unicode data - u'¡Broken!'.encode('utf-8'), # non-ASCII, utf-8 encoded bytestring - b'\xa1Broken!', ) # non-ASCII, latin1 bytestring +except_args = (b'Broken!', # plain exception with ASCII text + '¡Broken!', # non-ASCII unicode data + '¡Broken!'.encode('utf-8'), # non-ASCII, utf-8 encoded bytestring + b'\xa1Broken!', ) # non-ASCII, latin1 bytestring |
