[Python-modules-commits] r30813 - in packages/python-formencode/trunk/debian/patches (1 file)
kitterman at users.alioth.debian.org
kitterman at users.alioth.debian.org
Mon Sep 29 04:21:34 UTC 2014
Date: Monday, September 29, 2014 @ 04:21:33
Author: kitterman
Revision: 30813
Add debian/patches/remove-dns-tests.diff
Added:
packages/python-formencode/trunk/debian/patches/remove-dns-tests.diff
Added: packages/python-formencode/trunk/debian/patches/remove-dns-tests.diff
===================================================================
--- packages/python-formencode/trunk/debian/patches/remove-dns-tests.diff (rev 0)
+++ packages/python-formencode/trunk/debian/patches/remove-dns-tests.diff 2014-09-29 04:21:33 UTC (rev 30813)
@@ -0,0 +1,49 @@
+Tests that require network (DNS) access
+Index: python-formencode-1.2.6/formencode/validators.py
+===================================================================
+--- python-formencode-1.2.6.orig/formencode/validators.py 2014-09-29 00:05:49.005577826 -0400
++++ python-formencode-1.2.6/formencode/validators.py 2014-09-29 00:06:12.357577136 -0400
+@@ -1263,20 +1263,6 @@
+ 'nobody at xn--m7r7ml7t24h.com'
+ >>> e.to_python('o*reilly at test.com')
+ 'o*reilly at test.com'
+- >>> e = Email(resolve_domain=True)
+- >>> e.resolve_domain
+- True
+- >>> e.to_python('doesnotexist at colorstudy.com')
+- 'doesnotexist at colorstudy.com'
+- >>> e.to_python('test at nyu.edu')
+- 'test at nyu.edu'
+- >>> # NOTE: If you do not have PyDNS installed this example won't work:
+- >>> e.to_python('test at thisdomaindoesnotexistithinkforsure.com')
+- Traceback (most recent call last):
+- ...
+- Invalid: The domain of the email address does not exist (the portion after the @: thisdomaindoesnotexistithinkforsure.com)
+- >>> e.to_python(u'test at google.com')
+- u'test at google.com'
+ >>> e = Email(not_empty=False)
+ >>> e.to_python('')
+
+@@ -1393,22 +1379,6 @@
+ Traceback (most recent call last):
+ ...
+ Invalid: That is not a valid URL
+- >>> u = URL(add_http=False, check_exists=True)
+- >>> u.to_python('http://google.com')
+- 'http://google.com'
+- >>> u.to_python('google.com')
+- Traceback (most recent call last):
+- ...
+- Invalid: You must start your URL with http://, https://, etc
+- >>> u.to_python('http://www.formencode.org/does/not/exist/page.html')
+- Traceback (most recent call last):
+- ...
+- Invalid: The server responded that the page could not be found
+- >>> u.to_python('http://this.domain.does.not.exist.example.org/test.html')
+- ... # doctest: +ELLIPSIS
+- Traceback (most recent call last):
+- ...
+- Invalid: An error occured when trying to connect to the server: ...
+
+ If you want to allow addresses without a TLD (e.g., ``localhost``) you can do::
+
More information about the Python-modules-commits
mailing list