diff --git a/src/_pytest/junitxml.py b/src/_pytest/junitxml.py index ee44d9556..71a31b85b 100644 --- a/src/_pytest/junitxml.py +++ b/src/_pytest/junitxml.py @@ -71,7 +71,7 @@ _py_ext_re = re.compile(r"\.py$") def bin_xml_escape(arg: str) -> py.xml.raw: - def repl(matchobj: "Match[str]") -> str: + def repl(matchobj: Match[str]) -> str: i = ord(matchobj.group()) if i <= 0xFF: return "#x%02X" % i