mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 04:50:12 +03:00
Fix failing tests
This commit is contained in:
parent
f076caebb0
commit
cee8cfb583
|
@ -1,3 +1,4 @@
|
|||
from __future__ import unicode_literals
|
||||
from django.conf import settings
|
||||
from django.core.exceptions import ObjectDoesNotExist
|
||||
from django.core.exceptions import ValidationError as DjangoValidationError
|
||||
|
|
|
@ -74,7 +74,7 @@ class TestEmpty:
|
|||
"""
|
||||
field = serializers.CharField(allow_blank=True)
|
||||
output = field.run_validation('')
|
||||
assert output is ''
|
||||
assert str(output) is str('')
|
||||
|
||||
def test_default(self):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user