Skip to content
Myr

Fixed missing reset on _compat.should_strip_ansi.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by trl75 · committed by David Lord · parent 9ce8bd8 · Browse files · 2 files+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−0 removed

  • other:+4 added−0 removed

2 files+4 added−0 removed

modified:src/click/testing.py+2 added
310 unmodified lines
311 old_visible_prompt_func = termui.visible_prompt_func312 old_hidden_prompt_func = termui.hidden_prompt_func313 old__getchar_func = termui._getchar314 old_should_strip_ansi = utils.should_strip_ansi # type: ignore315 old__compat_should_strip_ansi = _compat.should_strip_ansi316 termui.visible_prompt_func = visible_input317 termui.hidden_prompt_func = hidden_input318 termui._getchar = _getchar319 utils.should_strip_ansi = should_strip_ansi # type: ignore
26 unmodified lines
346 termui.visible_prompt_func = old_visible_prompt_func347 termui.hidden_prompt_func = old_hidden_prompt_func348 termui._getchar = old__getchar_func349 utils.should_strip_ansi = old_should_strip_ansi # type: ignore350 _compat.should_strip_ansi = old__compat_should_strip_ansi351 formatting.FORCED_WIDTH = old_forced_width352353 def invoke(354 self,
129 unmodified lines
modified:CHANGES.rst+2 added
25 unmodified lines
26- Error message when definig option with invalid name is more descriptive.27 :issue:`2452`28- Refactor code generating default ``--help`` option to deduplicate code.29 :pr:`2563`30- Test ``CLIRunner`` resets patched ``_compat.should_strip_ansi``.31 :issue:`2732`323334Version 8.1.735-------------
1102 unmodified lines