From 848c749d1a1718de37a47d0bc216714bcdfaf4b8 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Mon, 3 Sep 2012 09:54:02 +0200 Subject: [PATCH] adapt the junit xml escaping test to my escaping changes --- testing/test_junitxml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/test_junitxml.py b/testing/test_junitxml.py index 0e12b74d6..0004bd7dd 100644 --- a/testing/test_junitxml.py +++ b/testing/test_junitxml.py @@ -374,14 +374,14 @@ def test_invalid_xml_escape(): for i in invalid: - got = bin_xml_escape(unichr(i)) + got = bin_xml_escape(unichr(i)).uniobj if i <= 0xFF: expected = '#x%02X' % i else: expected = '#x%04X' % i assert got == expected for i in valid: - assert chr(i) == bin_xml_escape(unichr(i)) + assert chr(i) == bin_xml_escape(unichr(i)).uniobj def test_logxml_path_expansion(): from _pytest.junitxml import LogXML