diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-25 23:48:47 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-10-09 20:52:43 -0400 |
| commit | 6cb5285f29247b877e47f256d84bf6313db7b484 (patch) | |
| tree | 1984e0e1c5976e3d89ea8e50bf46363399450555 /tests/utils_tests | |
| parent | ec0803b1be161afe4db41d152fe6ed11eb6ff69c (diff) | |
[2.1.x] Refs #29784 -- Switched to https:// links where available.
Backport of 82f286cf6f198d37850d3c5df637b5665566a66b from master.
Diffstat (limited to 'tests/utils_tests')
| -rw-r--r-- | tests/utils_tests/test_html.py | 2 | ||||
| -rw-r--r-- | tests/utils_tests/test_jslex.py | 4 |
2 files changed, 3 insertions, 3 deletions
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 /[\]]/"""]), |
