diff options
| author | Mathieu Pillard | 2013-11-06 12:51:40 +0100 |
|---|---|---|
| committer | Mathieu Pillard | 2013-11-06 12:51:40 +0100 |
| commit | 5829eb7a5b0d45fe668d7ce1ad394a7b5966c70d (patch) | |
| tree | edf528c29d0b58743e7b3450c06511e5d50de294 /rest_framework | |
| parent | 53258908210b1eabd0ee204653a589d6579ac772 (diff) | |
| download | django-rest-framework-5829eb7a5b0d45fe668d7ce1ad394a7b5966c70d.tar.bz2 | |
Drop u'' prefix for python 3.x compatibility
Diffstat (limited to 'rest_framework')
| -rw-r--r-- | rest_framework/tests/test_fields.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/tests/test_fields.py b/rest_framework/tests/test_fields.py index 333476ba..ab2cceac 100644 --- a/rest_framework/tests/test_fields.py +++ b/rest_framework/tests/test_fields.py @@ -709,7 +709,7 @@ class ChoiceFieldTests(TestCase): def test_invalid_choice_model(self): s = ChoiceFieldModelSerializer(data={'choice' : 'wrong_value'}) self.assertFalse(s.is_valid()) - self.assertEqual(s.errors, {'choice': [u'Select a valid choice. wrong_value is not one of the available choices.']}) + self.assertEqual(s.errors, {'choice': ['Select a valid choice. wrong_value is not one of the available choices.']}) self.assertEqual(s.data['choice'], '') def test_empty_choice_model(self): |
