adapt the junit xml escaping test to my escaping changes
This commit is contained in:
parent
41ad7dbae1
commit
848c749d1a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue