Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.0.X] Fixed #11215 -- Replaced erroneous catch with except in testi…

…ng doc. Thanks jgomo3.

r10845 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10846 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 18feaead043532b8a6de1b2e898c940e6949ec2f 1 parent b9db62e
@kmtracey kmtracey authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/topics/testing.txt
View
2  docs/topics/testing.txt
@@ -656,7 +656,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``,
Please sign in to comment.
Something went wrong with that request. Please try again.