Skip to content
Myr

Merge branch '6.x-maintenance'

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

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents 8d9dd46, 3dfbb98 · Browse files · 3 files+12 added−5 removed
This commit

State

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

Diff stats

3 files+12 added−5 removed

  • other:+12 added−5 removed

3 files+12 added−5 removed

modified:click/testing.py+9 added-5 removed
195 unmodified lines
196 sys.stdout.flush()197 return char198199 default_color = color200201 def should_strip_ansi(stream=None, color=None):202 if color is None:203 return not default_color204 return not color
80 unmodified lines
285 try:286 cli.main(args=args or (),287 prog_name=self.get_default_prog_name(cli), **extra)288 except SystemExit as e:288 if e.code != 0:289 exception = e290289 exc_info = sys.exc_info()292290 exit_code = e.code291 if exit_code is None:292 exit_code = 0293294 if exit_code != 0:295 exception = e296297 if not isinstance(exit_code, int):298 sys.stdout.write(str(exit_code))299 sys.stdout.write('\n')300 exit_code = 1301302 except Exception as e:303 if not catch_exceptions:304 raise305 exception = e302 exit_code = -1306 exit_code = 1307 exc_info = sys.exc_info()308 finally:309 sys.stdout.flush()310 output = out.getvalue()
23 unmodified lines
modified:.gitignore+2 added
6 unmodified lines
7build8docs/_build9click.egg-info10.tox11.cache12.ropeproject
modified:CHANGES+1 added
25 unmodified lines
26(bugfix release; yet to be released)2728- Disabled sys._getframes() on Python interpreters that don't support it. See29 #728.30- Fix bug in test runner when calling ``sys.exit`` with ``None``. See #739.3132Version 6.733-----------34
342 unmodified lines