From 2b535954cdfb050f96588c60d45664b3802dcc25 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Mon, 3 Nov 2014 14:14:12 +0000 Subject: [PATCH] Py2/3 compat for validation test --- tests/test_validation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_validation.py b/tests/test_validation.py index 1b6aa358d..c278d90f3 100644 --- a/tests/test_validation.py +++ b/tests/test_validation.py @@ -89,7 +89,7 @@ class TestAvoidValidation(TestCase): self.assertFalse(serializer.is_valid()) self.assertDictEqual(serializer.errors, { 'non_field_errors': [ - 'Invalid data. Expected a dictionary, but got unicode.' + 'Invalid data. Expected a dictionary, but got %s.' % type('').__name__ ] })