diff options
Diffstat (limited to 'tests/httpwrappers')
| -rw-r--r-- | tests/httpwrappers/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py index 48a30a1b74..88c32f3b0c 100644 --- a/tests/httpwrappers/tests.py +++ b/tests/httpwrappers/tests.py @@ -5,7 +5,7 @@ import pickle import unittest import uuid -from django.core.exceptions import DisallowedRedirect, SuspiciousOperation +from django.core.exceptions import DisallowedRedirect from django.core.serializers.json import DjangoJSONEncoder from django.core.signals import request_finished from django.db import close_old_connections @@ -441,9 +441,9 @@ class HttpResponseTests(unittest.TestCase): 'file:///etc/passwd', ] for url in bad_urls: - with self.assertRaises(SuspiciousOperation): + with self.assertRaises(DisallowedRedirect): HttpResponseRedirect(url) - with self.assertRaises(SuspiciousOperation): + with self.assertRaises(DisallowedRedirect): HttpResponsePermanentRedirect(url) |
