From 513f8525dba376bfd58e57b15252153d14eab323 Mon Sep 17 00:00:00 2001 From: Craig Blaszczyk Date: Thu, 8 Jan 2015 18:20:35 +0000 Subject: [PATCH] switch to non-unicode strings to support Python 3.2 --- tests/test_settings.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_settings.py b/tests/test_settings.py index a923c9db0..335957df6 100644 --- a/tests/test_settings.py +++ b/tests/test_settings.py @@ -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