You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/webtest/files/webtest-1.4.3-doctest.patch

16 lines
588 B

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('/')