tags 601070 + pending
thanks

Dear maintainer,

I've prepared an NMU for python-django (versioned as 1.2.3-1.1) and
uploaded it to DELAYED/5. Please feel free to tell me if I
should delay it longer.

Regards.
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-27 22:37:57.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-27 22:37:57.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-27 22:37:57.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

Reply via email to