summaryrefslogtreecommitdiff
path: root/dev-python/webtest/files/webtest-1.4.3-doctest.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/webtest/files/webtest-1.4.3-doctest.patch')
-rw-r--r--dev-python/webtest/files/webtest-1.4.3-doctest.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/dev-python/webtest/files/webtest-1.4.3-doctest.patch b/dev-python/webtest/files/webtest-1.4.3-doctest.patch
new file mode 100644
index 00000000000..15b65c51707
--- /dev/null
+++ b/dev-python/webtest/files/webtest-1.4.3-doctest.patch
@@ -0,0 +1,15 @@
+This doctest relies on dictionary key order, so remove it.
+--- a/docs/index.txt
++++ b/docs/index.txt
+@@ -321,11 +321,6 @@
+ <Element html at ...>
+ >>> res.lxml.xpath('//body/div')[0].text
+ 'hey!'
+- >>> res = TestResponse(content_type='application/json',
+- ... body=b'{"a":1,"b":2}')
+- >>> res.request = TestRequest.blank('/')
+- >>> list(res.json.values())
+- [1, 2]
+ >>> res = TestResponse(content_type='application/xml',
+ ... body=b'<xml><message>hey!</message></xml>')
+ >>> res.request = TestRequest.blank('/')