From 18feaead043532b8a6de1b2e898c940e6949ec2f Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Wed, 27 May 2009 16:06:35 +0000 Subject: [PATCH] [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 --- docs/topics/testing.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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``,