diff options
| author | Danilo Bargen | 2013-02-26 09:38:57 +0100 |
|---|---|---|
| committer | Danilo Bargen | 2013-02-26 09:38:57 +0100 |
| commit | e476dcb8c70f3792f01214f8d4a13c9316e11341 (patch) | |
| tree | a888565d479df6aec2e38b80a9b4f0650095a8af /rest_framework/tests/serializer.py | |
| parent | ec4d79bcaf08d577e8c44cad873515d018e21986 (diff) | |
| download | django-rest-framework-e476dcb8c70f3792f01214f8d4a13c9316e11341.tar.bz2 | |
Changed AttributeError to AssertionError
Diffstat (limited to 'rest_framework/tests/serializer.py')
| -rw-r--r-- | rest_framework/tests/serializer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/tests/serializer.py b/rest_framework/tests/serializer.py index d4e9cc13..36703fd9 100644 --- a/rest_framework/tests/serializer.py +++ b/rest_framework/tests/serializer.py @@ -365,7 +365,7 @@ class ValidationTests(TestCase): """ try: serializer = BrokenModelSerializer() - except AttributeError as e: + except AssertionError as e: self.assertEquals(e.args[0], "Serializer class 'BrokenModelSerializer' is missing 'model' Meta option") except: self.fail('Wrong exception type thrown.') |
