mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 21:10:13 +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
|
# Construct the expected error message
|
||||||
text_type_name = str(six.text_type.__name__)
|
text_type_name = str(six.text_type.__name__)
|
||||||
expected_error = (
|
expected_error = (
|
||||||
u'The "DEFAULT_RENDERER_CLASSES" setting must be a list or '
|
'The "DEFAULT_RENDERER_CLASSES" setting must be a list or '
|
||||||
u'tuple, but got type "{text_type_name}" with value '
|
'tuple, but got type "{text_type_name}" with value '
|
||||||
u'"rest_framework.renderers.JSONRenderer".'.format(
|
'"rest_framework.renderers.JSONRenderer".'.format(
|
||||||
text_type_name=text_type_name
|
text_type_name=text_type_name
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -57,7 +57,7 @@ class TestSettings(TestCase):
|
||||||
settings.DEFAULT_METADATA_CLASS
|
settings.DEFAULT_METADATA_CLASS
|
||||||
|
|
||||||
expected_error = (
|
expected_error = (
|
||||||
u'The "DEFAULT_METADATA_CLASS" setting must be a string, but got '
|
'The "DEFAULT_METADATA_CLASS" setting must be a string, but got '
|
||||||
u'type "list" with value "[]".'
|
'type "list" with value "[]".'
|
||||||
)
|
)
|
||||||
assert exc_info.value.args[0] == expected_error
|
assert exc_info.value.args[0] == expected_error
|
||||||
|
|
Loading…
Reference in New Issue
Block a user