From 16ce485d50f9e3e460d7ab2c7ce09782db346afa Mon Sep 17 00:00:00 2001 From: Julien Muchembled <jm@nexedi.com> Date: Thu, 23 Dec 2010 18:26:21 +0000 Subject: [PATCH] Postpone @expectedFailure in test_safeHTML_impossible_conversion This shows that it is currently impossible to edit a Web Page with invalid HTML. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41730 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5OOo/tests/testDms.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/product/ERP5OOo/tests/testDms.py b/product/ERP5OOo/tests/testDms.py index e05f5c051f..78402d4a31 100644 --- a/product/ERP5OOo/tests/testDms.py +++ b/product/ERP5OOo/tests/testDms.py @@ -1637,7 +1637,6 @@ document.write('<sc'+'ript type="text/javascript" src="http://somosite.bg/utb.ph self.assertTrue('AZERTYY' not in safe_html) self.assertTrue('#FFAA44' in safe_html) - @expectedFailure def test_safeHTML_impossible_conversion(self): """Some html are not parsable. """ @@ -1653,11 +1652,12 @@ document.write('<sc'+'ript type="text/javascript" src="http://somosite.bg/utb.ph </html> """ web_page.edit(text_content=html_content) - from HTMLParser import ParserError + from HTMLParser import HTMLParseError try: web_page.asStrippedHTML() - except ParserError: - self.fail('Even BeautifulSoup is not able to parse such HTML') + except HTMLParseError: + expectedFailure(self.fail)( + 'Even BeautifulSoup is not able to parse such HTML') def test_parallel_conversion(self): """Check that conversion engine is able to fill in -- 2.30.9