Commit 14ab9852 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Turn off flaky formencode test

which hits an external server
parent dfd53668
--- src/formencode/formencode/validators.py.orig 2016-07-14 17:02:54.061523151 +0000
+++ src/formencode/formencode/validators.py 2016-07-14 17:03:55.577523151 +0000
@@ -1394,14 +1394,10 @@
'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: ...
...@@ -13,5 +13,7 @@ packages = ["nose==1.3.7", "pycountry==1.6", "pyDNS==2.3.6"] ...@@ -13,5 +13,7 @@ packages = ["nose==1.3.7", "pycountry==1.6", "pyDNS==2.3.6"]
packages += ["-e", "git+https://github.com/formencode/formencode.git@1.2.5#egg=formencode"] packages += ["-e", "git+https://github.com/formencode/formencode.git@1.2.5#egg=formencode"]
create_virtenv(ENV_NAME, packages, force_create = True) create_virtenv(ENV_NAME, packages, force_create = True)
subprocess.check_call(["patch", "-p1"], stdin=open(os.path.join(os.path.dirname(__file__), "formencode.patch")), cwd=SRC_DIR)
expected = [{'ran': 201}] expected = [{'ran': 201}]
run_test([NOSETESTS_EXE], cwd=FORMENCODE_DIR, expected=expected) run_test([NOSETESTS_EXE], cwd=FORMENCODE_DIR, expected=expected)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment