We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 74f20f9 + e596b26 commit bd4977eCopy full SHA for bd4977e
src/_pytest/junitxml.py
@@ -16,6 +16,7 @@
16
from datetime import datetime
17
from typing import Dict
18
from typing import List
19
+from typing import Match
20
from typing import Optional
21
from typing import Tuple
22
from typing import Union
@@ -70,7 +71,7 @@ class Junit(py.xml.Namespace):
70
71
72
73
def bin_xml_escape(arg: str) -> py.xml.raw:
- def repl(matchobj: "re.Match[str]") -> str:
74
+ def repl(matchobj: Match[str]) -> str:
75
i = ord(matchobj.group())
76
if i <= 0xFF:
77
return "#x%02X" % i
0 commit comments