Mercurial > moin > 1.9
changeset 6095:465cb6f5c6d7
moin code fixes needed for werkzeug 0.11.11
werkzeug.escape now also escapes quotes.
Headers are a datatype now, not a simple list any more.
author | Thomas Waldmann <tw AT waldmann-edv DOT de> |
---|---|
date | Mon, 05 Sep 2016 23:29:03 +0200 |
parents | 9f12f41504fc |
children | 86a41c2bedec |
files | MoinMoin/_tests/test_wsgiapp.py MoinMoin/parser/_tests/test_text_moin_wiki.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/_tests/test_wsgiapp.py Mon Sep 05 23:25:59 2016 +0200 +++ b/MoinMoin/_tests/test_wsgiapp.py Mon Sep 05 23:29:03 2016 +0200 @@ -26,7 +26,7 @@ output = ''.join(appiter) print output assert status[:3] == '200' - assert ('Content-Type', 'text/html; charset=utf-8') in headers + assert ('Content-Type', 'text/html; charset=utf-8') in list(headers) for needle in (DOC_TYPE, page): assert needle in output yield _test_
--- a/MoinMoin/parser/_tests/test_text_moin_wiki.py Mon Sep 05 23:25:59 2016 +0200 +++ b/MoinMoin/parser/_tests/test_text_moin_wiki.py Mon Sep 05 23:29:03 2016 +0200 @@ -338,7 +338,7 @@ self.do(test) def do(self, test): - expected = r'<tablewidth="80">' + expected = r'<tablewidth="80">' result = self.parse(test) assert re.search(expected, result)