From cee8cfb583c8c05e4598dda2cf41b61db3bb99c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Padilla?= Date: Mon, 8 Dec 2014 00:24:59 -0400 Subject: [PATCH] Fix failing tests --- rest_framework/fields.py | 1 + tests/test_fields.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rest_framework/fields.py b/rest_framework/fields.py index 274b3d64e..38f94a14f 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -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 diff --git a/tests/test_fields.py b/tests/test_fields.py index 434a68ed9..9b8cf0bf6 100644 --- a/tests/test_fields.py +++ b/tests/test_fields.py @@ -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): """