MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_assertion_binchars

Method test_assertion_binchars

testing/test_junitxml.py:782–797  ·  view source on GitHub ↗

This test did fail when the escaping wasn't strict.

(
        self, pytester: Pytester, run_and_parse: RunAndParse
    )

Source from the content-addressed store, hash-verified

780 assert "hx" in fnode.toxml()
781
782 def test_assertion_binchars(
783 self, pytester: Pytester, run_and_parse: RunAndParse
784 ) -> None:
785 """This test did fail when the escaping wasn't strict."""
786 pytester.makepyfile(
787 """
788
789 M1 = '\x01\x02\x03\x04'
790 M2 = '\x01\x02\x03\x05'
791
792 def test_str_compare():
793 assert M1 == M2
794 """
795 )
796 result, dom = run_and_parse()
797 print(dom.toxml())
798
799 @pytest.mark.parametrize("junit_logging", ["no", "system-out"])
800 def test_pass_captures_stdout(

Callers

nothing calls this directly

Calls 3

run_and_parseFunction · 0.85
toxmlMethod · 0.80
makepyfileMethod · 0.45

Tested by

no test coverage detected