From be6ff148c18f7e60802ea4e1b14bb5a0ee169a95 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Sat, 28 Jun 2008 10:55:26 +0000 Subject: [PATCH] Fixed the fix from [7775]. The previous change was failing Django's "check for well-formed domain name" validation, rather than failing on the network side. Providing we don't ever set up www.broken.djangoproject.com as a valid domain name, this change should let us control our own destiny. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7776 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/forms/error_messages.py | 2 +- tests/regressiontests/forms/fields.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/regressiontests/forms/error_messages.py b/tests/regressiontests/forms/error_messages.py index 71adb1463f..381282f121 100644 --- a/tests/regressiontests/forms/error_messages.py +++ b/tests/regressiontests/forms/error_messages.py @@ -237,7 +237,7 @@ ValidationError: [u'REQUIRED'] Traceback (most recent call last): ... ValidationError: [u'INVALID'] ->>> f.clean('http://www.test.invalid') +>>> f.clean('http://www.broken.djangoproject.com') Traceback (most recent call last): ... ValidationError: [u'INVALID LINK'] diff --git a/tests/regressiontests/forms/fields.py b/tests/regressiontests/forms/fields.py index a56c75cdbf..950b1761a5 100644 --- a/tests/regressiontests/forms/fields.py +++ b/tests/regressiontests/forms/fields.py @@ -887,7 +887,7 @@ u'http://www.google.com' Traceback (most recent call last): ... ValidationError: [u'Enter a valid URL.'] ->>> f.clean('http://www.test.invalid') # bad domain +>>> f.clean('http://www.broken.djangoproject.com') # bad domain Traceback (most recent call last): ... ValidationError: [u'This URL appears to be a broken link.']