Skip to content

Commit dbebdc4

Browse files
Update Lib/test/test_argparse.py
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 8908eaa commit dbebdc4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Lib/test/test_argparse.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7612,7 +7612,11 @@ def build(color, path="output.txt"):
76127612
env["COLUMNS"] = columns
76137613
colored = build(color=True, path=path).format_help()
76147614
plain = build(color=False, path=path).format_help()
7615-
self.assertIn("\x1b[", colored)
7615+
self.assertIn(
7616+
f"{self.theme.interpolated_value}auto"
7617+
f"{self.theme.reset}",
7618+
colored,
7619+
)
76167620
self.assertEqual(_colorize.decolor(colored), plain)
76177621

76187622
def test_argparse_color_preserved_when_wrapping_between_words(self):

0 commit comments

Comments
 (0)