Remove unicode from exception value.

This commit is contained in:
Dawn Pattison 2015-11-13 10:41:57 -05:00
parent 5fdc4f22cf
commit 3ddbf92bf9

View File

@ -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):