mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 13:00:12 +03:00
switch to non-unicode strings to support Python 3.2
This commit is contained in:
parent
0aed9a8ed2
commit
513f8525db
|
@ -35,9 +35,9 @@ class TestSettings(TestCase):
|
|||
# Construct the expected error message
|
||||
text_type_name = str(six.text_type.__name__)
|
||||
expected_error = (
|
||||
u'The "DEFAULT_RENDERER_CLASSES" setting must be a list or '
|
||||
u'tuple, but got type "{text_type_name}" with value '
|
||||
u'"rest_framework.renderers.JSONRenderer".'.format(
|
||||
'The "DEFAULT_RENDERER_CLASSES" setting must be a list or '
|
||||
'tuple, but got type "{text_type_name}" with value '
|
||||
'"rest_framework.renderers.JSONRenderer".'.format(
|
||||
text_type_name=text_type_name
|
||||
)
|
||||
)
|
||||
|
@ -57,7 +57,7 @@ class TestSettings(TestCase):
|
|||
settings.DEFAULT_METADATA_CLASS
|
||||
|
||||
expected_error = (
|
||||
u'The "DEFAULT_METADATA_CLASS" setting must be a string, but got '
|
||||
u'type "list" with value "[]".'
|
||||
'The "DEFAULT_METADATA_CLASS" setting must be a string, but got '
|
||||
'type "list" with value "[]".'
|
||||
)
|
||||
assert exc_info.value.args[0] == expected_error
|
||||
|
|
Loading…
Reference in New Issue
Block a user