From 3ddbf92bf99f47827cd7a8b2292f0dadac043cc2 Mon Sep 17 00:00:00 2001 From: Dawn Pattison Date: Fri, 13 Nov 2015 10:41:57 -0500 Subject: [PATCH] Remove unicode from exception value. --- tests/test_fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_fields.py b/tests/test_fields.py index b0320b2ee..8d3bef106 100644 --- a/tests/test_fields.py +++ b/tests/test_fields.py @@ -1461,7 +1461,7 @@ class TestListField(FieldValues): with pytest.raises(serializers.ValidationError) as exc_info: field.to_internal_value(input_value) - assert exc_info.value.detail == [u'Expected a list of items but got type "dict".'] + assert exc_info.value.detail == ['Expected a list of items but got type "dict".'] class TestEmptyListField(FieldValues):