﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
16812	FieldsTests.test_urlfield_10 fails since r16760	Aymeric Augustin	nobody	"This failure happen in Python 2.5 and 2.6 but it apparently doesn't show up on all OSes.

The CI server reports it:
* http://ci.djangoproject.com/job/Django/database=sqlite3,python=python2.5/lastCompletedBuild/testReport/regressiontests.forms.tests.fields/FieldsTests/test_urlfield_10/
* http://ci.djangoproject.com/job/Django/database=sqlite3,python=python2.6/lastCompletedBuild/testReport/regressiontests.forms.tests.fields/FieldsTests/test_urlfield_10/
* http://ci.djangoproject.com/job/Django/database=sqlite3,python=python2.7/lastCompletedBuild/testReport/regressiontests.forms.tests.fields/FieldsTests/test_urlfield_10/



Here's what I get under OS X Lion, with Python from Mac Ports:
{{{

myk@mYk tests % PYTHONPATH=.. python2.5 runtests.py --settings=test_sqlite forms                                                            ~/Documents/dev/django-trunk/tests
Creating test database for alias 'default'...
Creating test database for alias 'other'...
...................................................................................................................................E...................................................................................................................................................................................
======================================================================
ERROR: test_urlfield_10 (regressiontests.forms.tests.fields.FieldsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/Users/myk/Documents/dev/django-trunk/tests/regressiontests/forms/tests/fields.py"", line 697, in test_urlfield_10
    self.assertEqual(url, f.clean(url))
  File ""/Users/myk/Documents/dev/django-trunk/django/forms/fields.py"", line 153, in clean
    self.run_validators(value)
  File ""/Users/myk/Documents/dev/django-trunk/django/forms/fields.py"", line 142, in run_validators
    raise ValidationError(errors)
ValidationError: [u'Enter a valid URL.']

----------------------------------------------------------------------
Ran 311 tests in 2.924s

FAILED (errors=1)
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...
myk@mYk tests % PYTHONPATH=.. python2.6 runtests.py --settings=test_sqlite forms                                                            ~/Documents/dev/django-trunk/tests
Creating test database for alias 'default'...
Creating test database for alias 'other'...
...................................................................................................................................E...................................................................................................................................................................................
======================================================================
ERROR: test_urlfield_10 (regressiontests.forms.tests.fields.FieldsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/Users/myk/Documents/dev/django-trunk/tests/regressiontests/forms/tests/fields.py"", line 697, in test_urlfield_10
    self.assertEqual(url, f.clean(url))
  File ""/Users/myk/Documents/dev/django-trunk/django/forms/fields.py"", line 153, in clean
    self.run_validators(value)
  File ""/Users/myk/Documents/dev/django-trunk/django/forms/fields.py"", line 142, in run_validators
    raise ValidationError(errors)
ValidationError: [u'Enter a valid URL.']

----------------------------------------------------------------------
Ran 311 tests in 1.941s

FAILED (errors=1)
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...
myk@mYk tests % PYTHONPATH=.. python2.7 runtests.py --settings=test_sqlite forms                                                            ~/Documents/dev/django-trunk/tests
Creating test database for alias 'default'...
Creating test database for alias 'other'...
.......................................................................................................................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 311 tests in 2.666s

OK
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...
}}}"	Bug	closed	Forms	dev	Release blocker	fixed			Accepted	1	0	0	0	0	0
