File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ Unreleased
27
27
:issue: `2452 `
28
28
- Refactor code generating default ``--help `` option to deduplicate code.
29
29
:pr: `2563 `
30
+ - Test ``CLIRunner `` resets patched ``_compat.should_strip_ansi ``.
31
+ :issue: `2732 `
30
32
31
33
32
34
Version 8.1.7
Original file line number Diff line number Diff line change @@ -312,6 +312,7 @@ def should_strip_ansi(
312
312
old_hidden_prompt_func = termui .hidden_prompt_func
313
313
old__getchar_func = termui ._getchar
314
314
old_should_strip_ansi = utils .should_strip_ansi # type: ignore
315
+ old__compat_should_strip_ansi = _compat .should_strip_ansi
315
316
termui .visible_prompt_func = visible_input
316
317
termui .hidden_prompt_func = hidden_input
317
318
termui ._getchar = _getchar
@@ -346,6 +347,7 @@ def should_strip_ansi(
346
347
termui .hidden_prompt_func = old_hidden_prompt_func
347
348
termui ._getchar = old__getchar_func
348
349
utils .should_strip_ansi = old_should_strip_ansi # type: ignore
350
+ _compat .should_strip_ansi = old__compat_should_strip_ansi
349
351
formatting .FORCED_WIDTH = old_forced_width
350
352
351
353
def invoke (
You can’t perform that action at this time.
0 commit comments