summaryrefslogtreecommitdiff
path: root/dev-python/webtest/files/webtest-1.3-doctest-ellipsis.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/webtest/files/webtest-1.3-doctest-ellipsis.patch')
-rw-r--r--dev-python/webtest/files/webtest-1.3-doctest-ellipsis.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-python/webtest/files/webtest-1.3-doctest-ellipsis.patch b/dev-python/webtest/files/webtest-1.3-doctest-ellipsis.patch
new file mode 100644
index 00000000000..38b01ae215b
--- /dev/null
+++ b/dev-python/webtest/files/webtest-1.3-doctest-ellipsis.patch
@@ -0,0 +1,38 @@
+diff --git a/docs/index.txt b/docs/index.txt
+index f472102..1edf711 100644
+--- a/docs/index.txt
++++ b/docs/index.txt
+@@ -271,7 +271,7 @@ Then you can submit:
+ >>> res = form.submit()
+ >>> # Or submit a button:
+ >>> res = form.submit('submit')
+- >>> print(res)
++ >>> print(res) # doctest:+ELLIPSIS
+ Response: 200 OK
+ Content-Type: text/plain
+ ...
+@@ -331,7 +331,7 @@ Examples:
+ <class 'BeautifulSoup.BeautifulSoup'>
+ >>> res.html.body.div.string
+ u'hey!'
+- >>> res.lxml
++ >>> res.lxml # doctest:+ELLIPSIS
+ <Element html at ...>
+ >>> res.lxml.xpath('//body/div')[0].text
+ 'hey!'
+@@ -343,13 +343,13 @@ Examples:
+ >>> res = TestResponse(content_type='application/xml',
+ ... body='<xml><message>hey!</message></xml>')
+ >>> res.request = TestRequest.blank('/')
+- >>> res.xml
++ >>> res.xml # doctest:+ELLIPSIS
+ <Element ...>
+ >>> res.xml[0].tag
+ 'message'
+ >>> res.xml[0].text
+ 'hey!'
+- >>> res.lxml
++ >>> res.lxml # doctest:+ELLIPSIS
+ <Element xml at ...>
+ >>> res.lxml[0].tag
+ 'message' \ No newline at end of file