summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Tracey <kmtracey@gmail.com>2009-05-27 16:06:35 +0000
committerKaren Tracey <kmtracey@gmail.com>2009-05-27 16:06:35 +0000
commit18feaead043532b8a6de1b2e898c940e6949ec2f (patch)
tree6cd5c5cc9eb0540a928a2d1871358c0cc61fad03
parentb9db62ee605d5569d69b71b6aa3bda4447870727 (diff)
[1.0.X] Fixed #11215 -- Replaced erroneous catch with except in testing 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
-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 a390207a4f..8804721715 100644
--- a/docs/topics/testing.txt
+++ b/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``,