From e596b26f1ae2901b72410ab3ed3984d59376dbeb Mon Sep 17 00:00:00 2001 From: Gleb Nikonorov Date: Thu, 2 Jul 2020 18:22:54 -0400 Subject: [PATCH] Don't quote the Match type since it's imported from Typing --- src/_pytest/junitxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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