diff options
| author | Danilo Bargen <mail@dbrgn.ch> | 2014-11-03 18:01:31 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-01-06 14:04:25 -0500 |
| commit | 2e65d56156b622e2393dee1af66e9c799a51924f (patch) | |
| tree | 78a9adb4f512e5c881fef51748d790d7c3be7200 /tests/forms_tests | |
| parent | 6288fccfda91593438f3b2f03998b7d7b6b0fcc0 (diff) | |
Fixed #20003 -- Improved and extended URLValidator
This adds support for authentication data (`user:password`) in URLs,
IPv6 addresses, and unicode domains.
The test suite has been improved by adding test URLs from
http://mathiasbynens.be/demo/url-regex (with a few adjustments,
like allowing local and reserved IPs).
The previous URL validation regex failed this test suite on 13
occasions, the validator was updated based on
https://gist.github.com/dperini/729294.
Diffstat (limited to 'tests/forms_tests')
| -rw-r--r-- | tests/forms_tests/tests/test_fields.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/forms_tests/tests/test_fields.py b/tests/forms_tests/tests/test_fields.py index a588084843..ea6e842475 100644 --- a/tests/forms_tests/tests/test_fields.py +++ b/tests/forms_tests/tests/test_fields.py @@ -896,9 +896,7 @@ class FieldsTests(SimpleTestCase): """Test URLField correctly validates IPv6 (#18779).""" f = URLField() urls = ( - 'http://::/', - 'http://6:21b4:92/', - 'http://[12:34:3a53]/', + 'http://[12:34::3a53]/', 'http://[a34:9238::]:8080/', ) for url in urls: |
