diff --git a/tests/test_serializer_lists.py b/tests/test_serializer_lists.py index 740197c28..a7955d83c 100644 --- a/tests/test_serializer_lists.py +++ b/tests/test_serializer_lists.py @@ -374,7 +374,7 @@ class TestSerializerPartialUsage: assert not serializer.is_valid() assert serializer.validated_data == [] assert len(serializer.errors) == 1 - assert serializer.errors['non_field_errors'] == [u'This list may not be empty.'] + assert serializer.errors['non_field_errors'][0] == 'This list may not be empty.' def test_update_allow_empty_false(self): class ListSerializer(serializers.Serializer):