From 019eaacefc162dc899195836af0ccd231c288ed8 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 13 Apr 2015 09:42:43 -0400 Subject: [1.6.x] Fixed sphinx errors in docs. --- docs/topics/testing/tools.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/topics/testing/tools.txt') diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index a2fbf3cf68..2159cce3c9 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -449,7 +449,7 @@ block or :meth:`~unittest.TestCase.assertRaises` to test for exceptions. The only exceptions that are not visible to the test client are :class:`~django.http.Http404`, -:class:`~django.core.exceptions.PermissionDenied`, :exc:`SystemExit`, and +:class:`~django.core.exceptions.PermissionDenied`, ``SystemExit``, and :class:`~django.core.exceptions.SuspiciousOperation`. Django catches these exceptions internally and converts them into the appropriate HTTP response codes. In these cases, you can check ``response.status_code`` in your test. -- cgit v1.3