Implemented a test for xml control character fail.
This commit is contained in:
parent
0e5f2847f1
commit
7803bca335
|
@ -450,3 +450,16 @@ def test_logxml_changingdir(testdir):
|
||||||
assert result.ret == 0
|
assert result.ret == 0
|
||||||
assert testdir.tmpdir.join("a/x.xml").check()
|
assert testdir.tmpdir.join("a/x.xml").check()
|
||||||
|
|
||||||
|
def test_escaped_parametrized_names_xml(testdir):
|
||||||
|
testdir.makepyfile("""
|
||||||
|
import pytest
|
||||||
|
@pytest.mark.parametrize('char', ["\\x00"])
|
||||||
|
def test_func(char):
|
||||||
|
assert char
|
||||||
|
""")
|
||||||
|
result, dom = runandparse(testdir)
|
||||||
|
assert result.ret == 0
|
||||||
|
node = dom.getElementsByTagName("testcase")[0]
|
||||||
|
assert_attr(node,
|
||||||
|
name="test_func[#x00]")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue