diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-25 23:48:47 -0700 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2018-09-26 08:48:47 +0200 |
| commit | 82f286cf6f198d37850d3c5df637b5665566a66b (patch) | |
| tree | bf8d7b8d45ee9bcf033ecbd35d73f98f3f58d87e /tests | |
| parent | d1d5c97bc2821bf8c0f4b2d9c7ab16200845b494 (diff) | |
Refs #29784 -- Switched to https:// links where available.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/auth_tests/test_models.py | 2 | ||||
| -rw-r--r-- | tests/gis_tests/inspectapp/tests.py | 2 | ||||
| -rw-r--r-- | tests/httpwrappers/tests.py | 2 | ||||
| -rw-r--r-- | tests/requests/tests.py | 2 | ||||
| -rw-r--r-- | tests/timezones/tests.py | 2 | ||||
| -rw-r--r-- | tests/utils_tests/test_html.py | 2 | ||||
| -rw-r--r-- | tests/utils_tests/test_jslex.py | 4 |
7 files changed, 8 insertions, 8 deletions
diff --git a/tests/auth_tests/test_models.py b/tests/auth_tests/test_models.py index bd83b47677..755511bbb4 100644 --- a/tests/auth_tests/test_models.py +++ b/tests/auth_tests/test_models.py @@ -110,7 +110,7 @@ class UserManagerTestCase(TestCase): self.assertFalse(user.has_usable_password()) def test_create_user_email_domain_normalize_rfc3696(self): - # According to http://tools.ietf.org/html/rfc3696#section-3 + # According to https://tools.ietf.org/html/rfc3696#section-3 # the "@" symbol can be part of the local part of an email address returned = UserManager.normalize_email(r'Abc\@DEF@EXAMPLE.com') self.assertEqual(returned, r'Abc\@DEF@example.com') diff --git a/tests/gis_tests/inspectapp/tests.py b/tests/gis_tests/inspectapp/tests.py index a57bfcabbd..4fdd38f647 100644 --- a/tests/gis_tests/inspectapp/tests.py +++ b/tests/gis_tests/inspectapp/tests.py @@ -191,7 +191,7 @@ def get_ogr_db_string(): db = connections.databases['default'] # Map from the django backend into the OGR driver name and database identifier - # http://www.gdal.org/ogr/ogr_formats.html + # https://www.gdal.org/ogr/ogr_formats.html # # TODO: Support Oracle (OCI). drivers = { diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py index 01ce20f93d..e6c6297898 100644 --- a/tests/httpwrappers/tests.py +++ b/tests/httpwrappers/tests.py @@ -337,7 +337,7 @@ class HttpResponseTests(unittest.TestCase): f = 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz a\xcc\x88'.encode('latin-1') f = f.decode('utf-8') h['Content-Disposition'] = 'attachment; filename="%s"' % f - # This one is triggering http://bugs.python.org/issue20747, that is Python + # This one is triggering https://bugs.python.org/issue20747, that is Python # will itself insert a newline in the header h['Content-Disposition'] = 'attachment; filename="EdelRot_Blu\u0308te (3)-0.JPG"' diff --git a/tests/requests/tests.py b/tests/requests/tests.py index e1c25a2f6d..45e33ea651 100644 --- a/tests/requests/tests.py +++ b/tests/requests/tests.py @@ -346,7 +346,7 @@ class RequestsTests(SimpleTestCase): Multipart POST requests with Content-Length >= 0 are valid and need to be handled. """ # According to: - # http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13 + # https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13 # Every request.POST with Content-Length >= 0 is a valid request, # this test ensures that we handle Content-Length == 0. payload = FakePayload("\r\n".join([ diff --git a/tests/timezones/tests.py b/tests/timezones/tests.py index 8b9069f7d6..6166719bd7 100644 --- a/tests/timezones/tests.py +++ b/tests/timezones/tests.py @@ -607,7 +607,7 @@ class SerializationTests(SimpleTestCase): # - JSON supports only milliseconds, microseconds will be truncated. # - PyYAML dumps the UTC offset correctly for timezone-aware datetimes, # but when it loads this representation, it subtracts the offset and - # returns a naive datetime object in UTC (http://pyyaml.org/ticket/202). + # returns a naive datetime object in UTC (https://pyyaml.org/ticket/202). # Tests are adapted to take these quirks into account. def assert_python_contains_datetime(self, objects, dt): diff --git a/tests/utils_tests/test_html.py b/tests/utils_tests/test_html.py index 005f4c79b5..94b8f946cc 100644 --- a/tests/utils_tests/test_html.py +++ b/tests/utils_tests/test_html.py @@ -84,7 +84,7 @@ class TestUtilsHtml(SimpleTestCase): ('d<a:b c:d>e</p>f', 'def'), ('<strong>foo</strong><a href="http://example.com">bar</a>', 'foobar'), # caused infinite loop on Pythons not patched with - # http://bugs.python.org/issue20288 + # https://bugs.python.org/issue20288 ('&gotcha&#;<>', '&gotcha&#;<>'), ('<sc<!-- -->ript>test<<!-- -->/script>', 'ript>test'), ('<script>alert()</script>&h', 'alert()h'), diff --git a/tests/utils_tests/test_jslex.py b/tests/utils_tests/test_jslex.py index 52a4b65d69..bf737b8fd2 100644 --- a/tests/utils_tests/test_jslex.py +++ b/tests/utils_tests/test_jslex.py @@ -41,7 +41,7 @@ class JsTokensTest(SimpleTestCase): (r"a=/a*\[^/,1", ["id a", "punct =", r"regex /a*\[^/", "punct ,", "dnum 1"]), (r"a=/\//,1", ["id a", "punct =", r"regex /\//", "punct ,", "dnum 1"]), - # next two are from http://www.mozilla.org/js/language/js20-2002-04/rationale/syntax.html#regular-expressions + # next two are from https://www-archive.mozilla.org/js/language/js20-2002-04/rationale/syntax.html#regular-expressions # NOQA ("""for (var x = a in foo && "</x>" || mot ? z:/x:3;x<5;y</g/i) {xyz(x++);}""", ["keyword for", "punct (", "keyword var", "id x", "punct =", "id a", "keyword in", "id foo", "punct &&", 'string "</x>"', "punct ||", "id mot", "punct ?", "id z", @@ -57,7 +57,7 @@ class JsTokensTest(SimpleTestCase): # Various "illegal" regexes that are valid according to the std. (r"""/????/, /++++/, /[----]/ """, ["regex /????/", "punct ,", "regex /++++/", "punct ,", "regex /[----]/"]), - # Stress cases from http://stackoverflow.com/questions/5533925/what-javascript-constructs-does-jslex-incorrectly-lex/5573409#5573409 # NOQA + # Stress cases from https://stackoverflow.com/questions/5533925/what-javascript-constructs-does-jslex-incorrectly-lex/5573409#5573409 # NOQA (r"""/\[/""", [r"""regex /\[/"""]), (r"""/[i]/""", [r"""regex /[i]/"""]), (r"""/[\]]/""", [r"""regex /[\]]/"""]), |
