From 277afeb85ec8da4f8c2219bd95974567d605f97e Mon Sep 17 00:00:00 2001 From: Ayub khan Date: Thu, 3 Oct 2019 15:26:36 +0500 Subject: [PATCH] BOM-788 python3 compatibility: etree returns a bytes type string so in py3 we need to decode it to compare with a unicode string --- common/lib/capa/capa/tests/test_html_render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/capa/capa/tests/test_html_render.py b/common/lib/capa/capa/tests/test_html_render.py index 46b5458b00..125709020b 100644 --- a/common/lib/capa/capa/tests/test_html_render.py +++ b/common/lib/capa/capa/tests/test_html_render.py @@ -140,7 +140,7 @@ class CapaHtmlRenderTest(unittest.TestCase): # expect the javascript is still present in the rendered html self.assertIn( "", - etree.tostring(rendered_html) + etree.tostring(rendered_html).decode('utf-8') ) def test_render_response_xml(self):