diff --git a/changelog/11842.bugfix.rst b/changelog/11842.bugfix.rst index 9ca0a8d8d..3a11b110f 100644 --- a/changelog/11842.bugfix.rst +++ b/changelog/11842.bugfix.rst @@ -1 +1 @@ -Properly escape the ``reason`` of a :ref:`skipif ` mark when writing JUnit XML files. +Properly escape the ``reason`` of a :ref:`skip ` mark when writing JUnit XML files. diff --git a/testing/test_junitxml.py b/testing/test_junitxml.py index fa2b34ff1..48a9c263e 100644 --- a/testing/test_junitxml.py +++ b/testing/test_junitxml.py @@ -1654,6 +1654,7 @@ def test_escaped_skipreason_issue3533( def test_bin_escaped_skipreason(pytester: Pytester, run_and_parse: RunAndParse) -> None: + """Special characters are skipped from mark.skip reason (#11842).""" pytester.makepyfile( """ import pytest