summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2019-02-04 18:53:11 -0500
committerGitHub <noreply@github.com>2019-02-04 18:53:11 -0500
commit83c2bc52c2bf6da682989867b09c753ec1a2e5b3 (patch)
treec079c7aaf904532ca795a4ac11985e8646385e47 /tests
parentfdc4518fe296c169cf54f23fdad2e0fc8785c059 (diff)
Refs #27753 -- Deprecated django.utils.http urllib aliases.
Diffstat (limited to 'tests')
-rw-r--r--tests/utils_tests/test_http.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/utils_tests/test_http.py b/tests/utils_tests/test_http.py
index d143b34e7b..05628431c3 100644
--- a/tests/utils_tests/test_http.py
+++ b/tests/utils_tests/test_http.py
@@ -1,8 +1,9 @@
import unittest
from datetime import datetime
-from django.test import SimpleTestCase
+from django.test import SimpleTestCase, ignore_warnings
from django.utils.datastructures import MultiValueDict
+from django.utils.deprecation import RemovedInDjango40Warning
from django.utils.http import (
base36_to_int, escape_leading_slashes, http_date, int_to_base36,
is_safe_url, is_same_domain, parse_etags, parse_http_date, quote_etag,
@@ -216,6 +217,7 @@ class URLSafeBase64Tests(unittest.TestCase):
self.assertEqual(bytestring, decoded)
+@ignore_warnings(category=RemovedInDjango40Warning)
class URLQuoteTests(unittest.TestCase):
def test_quote(self):
self.assertEqual(urlquote('Paris & Orl\xe9ans'), 'Paris%20%26%20Orl%C3%A9ans')