diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2010-02-14 20:29:42 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2010-02-14 20:29:42 +0000 |
| commit | 76afc30229812547f0624fc681710a877fe0fde8 (patch) | |
| tree | 22defb962f51e96d238937fef3281dd373445ada /tests/regressiontests | |
| parent | db0209e2b215052f13737249462b644ee85f0249 (diff) | |
Fixed a couple Python 2.4 incompatibilities.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12434 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests')
| -rw-r--r-- | tests/regressiontests/test_client_regress/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regressiontests/test_client_regress/models.py b/tests/regressiontests/test_client_regress/models.py index f3585268b3..9b40591a73 100644 --- a/tests/regressiontests/test_client_regress/models.py +++ b/tests/regressiontests/test_client_regress/models.py @@ -606,7 +606,7 @@ class ContextTests(TestCase): response.context['does-not-exist'] self.fail('Should not be able to retrieve non-existent key') except KeyError, e: - self.assertEquals(e.message, 'does-not-exist') + self.assertEquals(e.args[0], 'does-not-exist') def test_inherited_context(self): "Context variables can be retrieved from a list of contexts" @@ -621,7 +621,7 @@ class ContextTests(TestCase): response.context['does-not-exist'] self.fail('Should not be able to retrieve non-existent key') except KeyError, e: - self.assertEquals(e.message, 'does-not-exist') + self.assertEquals(e.args[0], 'does-not-exist') class SessionTests(TestCase): |
