@@ -1206,10 +1206,10 @@ def show_simple(lines: list[str], *, stat: str) -> None:
12061206 def show_xfailed (lines : list [str ]) -> None :
12071207 xfailed = self .stats .get ("xfailed" , [])
12081208 for rep in xfailed :
1209- verbose_word = rep ._get_verbose_word (self .config )
1210- markup_word = self ._tw .markup (
1211- verbose_word , ** {_color_for_type ["warnings" ]: True }
1209+ verbose_word , verbose_markup = rep ._get_verbose_word_with_markup (
1210+ self .config , {_color_for_type ["warnings" ]: True }
12121211 )
1212+ markup_word = self ._tw .markup (verbose_word , ** verbose_markup )
12131213 nodeid = _get_node_id_with_markup (self ._tw , self .config , rep )
12141214 line = f"{ markup_word } { nodeid } "
12151215 reason = rep .wasxfail
@@ -1221,10 +1221,10 @@ def show_xfailed(lines: list[str]) -> None:
12211221 def show_xpassed (lines : list [str ]) -> None :
12221222 xpassed = self .stats .get ("xpassed" , [])
12231223 for rep in xpassed :
1224- verbose_word = rep ._get_verbose_word (self .config )
1225- markup_word = self ._tw .markup (
1226- verbose_word , ** {_color_for_type ["warnings" ]: True }
1224+ verbose_word , verbose_markup = rep ._get_verbose_word_with_markup (
1225+ self .config , {_color_for_type ["warnings" ]: True }
12271226 )
1227+ markup_word = self ._tw .markup (verbose_word , ** verbose_markup )
12281228 nodeid = _get_node_id_with_markup (self ._tw , self .config , rep )
12291229 line = f"{ markup_word } { nodeid } "
12301230 reason = rep .wasxfail
@@ -1237,10 +1237,10 @@ def show_skipped(lines: list[str]) -> None:
12371237 fskips = _folded_skips (self .startpath , skipped ) if skipped else []
12381238 if not fskips :
12391239 return
1240- verbose_word = skipped [0 ]._get_verbose_word (self .config )
1241- markup_word = self ._tw .markup (
1242- verbose_word , ** {_color_for_type ["warnings" ]: True }
1240+ verbose_word , verbose_markup = skipped [0 ]._get_verbose_word_with_markup (
1241+ self .config , {_color_for_type ["warnings" ]: True }
12431242 )
1243+ markup_word = self ._tw .markup (verbose_word , ** verbose_markup )
12441244 prefix = "Skipped: "
12451245 for num , fspath , lineno , reason in fskips :
12461246 if reason .startswith (prefix ):
@@ -1421,8 +1421,10 @@ def _get_line_with_reprcrash_message(
14211421 config : Config , rep : BaseReport , tw : TerminalWriter , word_markup : dict [str , bool ]
14221422) -> str :
14231423 """Get summary line for a report, trying to add reprcrash message."""
1424- verbose_word = rep ._get_verbose_word (config )
1425- word = tw .markup (verbose_word , ** word_markup )
1424+ verbose_word , verbose_markup = rep ._get_verbose_word_with_markup (
1425+ config , word_markup
1426+ )
1427+ word = tw .markup (verbose_word , ** verbose_markup )
14261428 node = _get_node_id_with_markup (tw , config , rep )
14271429
14281430 line = f"{ word } { node } "
0 commit comments