summaryrefslogtreecommitdiff
path: root/docs/topics/testing.txt
diff options
context:
space:
mode:
authorKaren Tracey <kmtracey@gmail.com>2009-05-27 16:03:51 +0000
committerKaren Tracey <kmtracey@gmail.com>2009-05-27 16:03:51 +0000
commitbdf33b37daaa7f94b7d760dd5d03f3920d220866 (patch)
tree817298331e2df796c1347a6d41bf3e9db468faf2 /docs/topics/testing.txt
parent5dc30c9fd2c7cff0d511ffdcc285a4cd9f56c73a (diff)
Fixed #11215 -- Replaced erroneous catch with except in testing doc.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10845 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics/testing.txt')
-rw-r--r--docs/topics/testing.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/testing.txt b/docs/topics/testing.txt
index c07dfb6aa9..0410049297 100644
--- a/docs/topics/testing.txt
+++ b/docs/topics/testing.txt
@@ -752,7 +752,7 @@ Exceptions
~~~~~~~~~~
If you point the test client at a view that raises an exception, that exception
-will be visible in the test case. You can then use a standard ``try...catch``
+will be visible in the test case. You can then use a standard ``try...except``
block or ``unittest.TestCase.assertRaises()`` to test for exceptions.
The only exceptions that are not visible to the test client are ``Http404``,