docstr: Disable output capturing. Otherwise, stdout is lost to doctest (#985)
docstr_tok: ["Disable","output","capturing",".","Otherwise",",","stdout","is","lost","to","doctest","(","#","985",")"]
code: def _disable_output_capturing_for_darwin(self):
      """
      Disable output capturing. Otherwise, stdout is lost to doctest (#985)
      """
      if platform.system() != "Darwin":
          return
      capman = self.config.pluginmanager.getplugin("capturemanager")
      if capman:
          capman.suspend_global_capture(in_=True)
          out, err = capman.read_global_capture()
          sys.stdout.write(out)
          sys.stderr.write(err)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import inspect
  import platform
  import sys
  import traceback
  import warnings
  from contextlib import contextmanager
  import pytest
  from _pytest._code.code import ExceptionInfo
  from _pytest._code.code import ReprFileLocation
  from _pytest._code.code import TerminalRepr
  from _pytest.compat import safe_getattr
  from _pytest.fixtures import FixtureRequest
  from _pytest.outcomes import Skipped
  from _pytest.warning_types import PytestWarning
label_desc: Use image node_id 4 for calling the DoctestItem obj's underlying member method code with example usage: obj._disable_output_capturing_for_darwin() without return types