summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamiro Morales <cramm0@gmail.com>2013-02-07 16:51:27 -0300
committerRamiro Morales <cramm0@gmail.com>2013-02-07 16:51:27 -0300
commitb5391515cd9b3f2608ca41fa61471a04b771389a (patch)
tree5d0299934b44adff09a7eec44bc8192a9e993617
parent04d9730b127c689b8eda01cbc913efa6e2eb230b (diff)
Changed test assertion strategy used in 04d9730.
-rw-r--r--tests/regressiontests/generic_relations_regress/tests.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/regressiontests/generic_relations_regress/tests.py b/tests/regressiontests/generic_relations_regress/tests.py
index b53129aa12..d62ff0c36a 100644
--- a/tests/regressiontests/generic_relations_regress/tests.py
+++ b/tests/regressiontests/generic_relations_regress/tests.py
@@ -106,9 +106,7 @@ class GenericRelationTests(TestCase):
# Fails with another, ORM-level error
dev1 = Developer(name='Joe')
note = Note(note='Deserves promotion', content_object=dev1)
- self.assertRaisesMessage(IntegrityError,
- "generic_relations_regress_note.object_id may not be NULL",
- note.save)
+ self.assertRaises(IntegrityError, note.save)
def test_target_model_len_zero(self):
"""Test for #13085 -- __len__() returns 0"""