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
This commit is contained in:
Karen Tracey 2009-05-27 16:03:51 +00:00
parent 5dc30c9fd2
commit bdf33b37da
1 changed files with 1 additions and 1 deletions

View File

@ -752,7 +752,7 @@ Exceptions
~~~~~~~~~~ ~~~~~~~~~~
If you point the test client at a view that raises an exception, that exception 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. block or ``unittest.TestCase.assertRaises()`` to test for exceptions.
The only exceptions that are not visible to the test client are ``Http404``, The only exceptions that are not visible to the test client are ``Http404``,