On Sat, Oct 23, 2010 at 03:20:20PM +0200, Evgeni Golov wrote: > Attached patch fixes the issue for me by disabling two model tests that > need working network. Tested in sid pbuilder with deactivated network > (after build-deps were fetched :)).
My mutt should warn me about "attached" in body and no attachment :) Now really attached :) -- Bruce Schneier can read and understand Perl programs.
diff -Nru python-django-1.2.3/debian/changelog python-django-1.2.3/debian/changelog --- python-django-1.2.3/debian/changelog 2010-09-18 19:37:07.000000000 +0200 +++ python-django-1.2.3/debian/changelog 2010-10-23 15:03:53.000000000 +0200 @@ -1,3 +1,11 @@ +python-django (1.2.3-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Disable model tests that require an internet connection. + Closes: #601070 + + -- Evgeni Golov <evg...@debian.org> Sat, 23 Oct 2010 15:03:38 +0200 + python-django (1.2.3-1) unstable; urgency=low [ Krzysztof Klimonda ] diff -Nru python-django-1.2.3/debian/patches/07_disable_url_verify_model_tests.diff python-django-1.2.3/debian/patches/07_disable_url_verify_model_tests.diff --- python-django-1.2.3/debian/patches/07_disable_url_verify_model_tests.diff 1970-01-01 01:00:00.000000000 +0100 +++ python-django-1.2.3/debian/patches/07_disable_url_verify_model_tests.diff 2010-10-23 15:03:19.000000000 +0200 @@ -0,0 +1,26 @@ +Forwarded-Upstream: not needed +Author: Evgeni Golov <evg...@debian.org> +Comment: + Disable model tests that require an internet connection. + . + This is a Debian specific patch. + +Index: python-django-1.2.3/tests/modeltests/validation/tests.py +=================================================================== +--- python-django-1.2.3.orig/tests/modeltests/validation/tests.py 2010-10-23 14:59:12.447389830 +0200 ++++ python-django-1.2.3/tests/modeltests/validation/tests.py 2010-10-23 15:01:01.875390381 +0200 +@@ -52,14 +52,6 @@ + mtv = ModelToValidate(number=10, name='Some Name', url='not a url') + self.assertFieldFailsValidationWithMessage(mtv.full_clean, 'url', [u'Enter a valid value.']) + +- def test_correct_url_but_nonexisting_gives_404(self): +- mtv = ModelToValidate(number=10, name='Some Name', url='http://google.com/we-love-microsoft.html') +- self.assertFieldFailsValidationWithMessage(mtv.full_clean, 'url', [u'This URL appears to be a broken link.']) +- +- def test_correct_url_value_passes(self): +- mtv = ModelToValidate(number=10, name='Some Name', url='http://www.djangoproject.com/') +- self.assertEqual(None, mtv.full_clean()) # This will fail if there's no Internet connection +- + def test_text_greater_that_charfields_max_length_eaises_erros(self): + mtv = ModelToValidate(number=10, name='Some Name'*100) + self.assertFailsValidation(mtv.full_clean, ['name',]) diff -Nru python-django-1.2.3/debian/patches/series python-django-1.2.3/debian/patches/series --- python-django-1.2.3/debian/patches/series 2010-09-18 08:04:11.000000000 +0200 +++ python-django-1.2.3/debian/patches/series 2010-10-23 14:58:41.000000000 +0200 @@ -3,3 +3,4 @@ 04_hyphen-manpage.diff 05_fix_regression_tests.diff 06_fix_regression_tests.diff +07_disable_url_verify_model_tests.diff