Skip to content

Commit c752e96

Browse files
committed
Fix test for py32-django18.
1 parent c0f4dfd commit c752e96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_serializer_lists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ class ListSerializer(serializers.Serializer):
374374
assert not serializer.is_valid()
375375
assert serializer.validated_data == []
376376
assert len(serializer.errors) == 1
377-
assert serializer.errors['non_field_errors'] == [u'This list may not be empty.']
377+
assert serializer.errors['non_field_errors'][0] == 'This list may not be empty.'
378378

379379
def test_update_allow_empty_false(self):
380380
class ListSerializer(serializers.Serializer):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy