aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTom Christie2014-11-03 14:14:12 +0000
committerTom Christie2014-11-03 14:14:12 +0000
commit2b535954cdfb050f96588c60d45664b3802dcc25 (patch)
treec5293855d59c34c29092a9794b609b3636ba1c4d /tests
parent003c42b0f51f9bfa93964be69fb8cb68b7394280 (diff)
downloaddjango-rest-framework-2b535954cdfb050f96588c60d45664b3802dcc25.tar.bz2
Py2/3 compat for validation test
Diffstat (limited to 'tests')
-rw-r--r--tests/test_validation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_validation.py b/tests/test_validation.py
index 1b6aa358..c278d90f 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__
]
})