Module Expr Str ImportFrom alias Import alias Import alias ImportFrom alias Import alias Import alias ImportFrom alias Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Num Num Num Str Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword IfExp Call NameLoad NameLoad Str Str Str keyword Str keyword ListLoad Str Str Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args defaults body If CompareIn Str AttributeLoad NameLoad attr body Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Str attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Yield Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call AttributeLoad NameLoad attr keyword NameLoad ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse If CompareEq NameLoad Str body Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse If CompareEq NameLoad Str body Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assert UnaryOpNot Call NameLoad NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str NameLoad If CompareIsNot NameLoad NameLoad body TryFinally body Assign NameStore Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign NameStore Yield Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str NameLoad orelse Expr Yield decorator_list Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Yield Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Yield Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Yield Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad decorator_list decorator_list Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str If CompareIn Str AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameStore Call NameLoad NameLoad Return NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str If CompareIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameStore Call NameLoad NameLoad Return NameLoad decorator_list AttributeLoad NameLoad attr ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Return AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Assign NameStore Call NameLoad NameLoad Str NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body If BoolOpAnd CompareNotIn Str Call NameLoad NameLoad Str Str Call NameLoad NameLoad Str body Return NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotIn Str NameLoad body AugAssignAdd NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Num Return Call NameLoad NameLoad BoolOpOr NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameStore NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body If NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Num If NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Num If NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Delete AttributeDel NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad Str body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return TupleLoad IfExp CompareIsNot AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str IfExp CompareIsNot AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases body Assign NameStore NameStore NameStore NameStore NameStore Lambda arguments args defaults vararg NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr Lambda arguments args defaults NameLoad Assign AttributeStore NameLoad attr Lambda arguments args defaults NameLoad orelse If CompareEq NameLoad Num body Assert UnaryOpNot NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad orelse If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad With NameLoad body Assign NameStore Call NameLoad NameLoad keyword Str If CompareIn NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad orelse Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call NameLoad NameLoad Str NameLoad If BoolOpAnd NameLoad Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Return NameLoad Return Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body If CompareEq NameLoad Str body Assign NameStore Call NameLoad orelse Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Delete AttributeDel NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults vararg body Raise Call NameLoad Str decorator_list Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list FunctionDef arguments args defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Return TryExcept body Import alias handlers ExceptHandler type NameLoad body Pass decorator_list
N/A N/A 
per-test stdout/stderr capturing mechanism.

 __future__ with_statement N/A sys N/A os tempfile TemporaryFile N/A py N/A pytest py.io TextIO N/A unicode N/A N/A py builtin text N/A patchsysdict N/A 0 1 2 stdin stdout stderr pytest_addoption N/A N/A parser N/A N/A N/A group N/A N/A parser getgroup general N/A N/A N/A group _addoption --capture action store default N/A N/A hasattr os dup fd sys metavar method choices N/A fd sys no help per-test capturing method: one of fd|sys|no. N/A N/A N/A group _addoption -s action store_const const no dest capture help shortcut for --capture=no. N/A pytest_load_initial_conftests N/A N/A early_config parser args N/A N/A N/A N/A _readline_workaround N/A ns N/A early_config known_args_namespace N/A pluginmanager N/A early_config pluginmanager N/A capman N/A CaptureManager N/A ns capture N/A N/A N/A pluginmanager register capman capturemanager N/A N/A N/A early_config add_cleanup N/A capman reset_capturings silence_logging_at_shutdown N/A N/A N/A N/A N/A N/A logging N/A sys modules N/A N/A N/A N/A N/A sys modules N/A logging raiseExceptions False N/A N/A N/A N/A early_config add_cleanup silence_logging_at_shutdown N/A N/A N/A capman init_capturings N/A outcome N/A N/A N/A out err N/A N/A capman suspendcapture N/A N/A N/A outcome excinfo None N/A N/A N/A N/A N/A sys stdout write out N/A N/A N/A N/A sys stderr write err N/A N/A N/A pytest hookimpl hookwrapper True CaptureManager N/A N/A __init__ N/A N/A self method N/A N/A N/A N/A self _method method N/A _getcapture N/A N/A self method N/A N/A N/A N/A method fd N/A N/A N/A MultiCapture out True err True Capture FDCapture N/A N/A N/A method sys N/A N/A N/A MultiCapture out True err True Capture SysCapture N/A N/A N/A method no N/A N/A N/A MultiCapture out False err False in_ False N/A N/A N/A ValueError N/A unknown capturing method: %r method N/A init_capturings N/A N/A self N/A N/A N/A N/A N/A hasattr self _capturing N/A N/A self _capturing N/A N/A self _getcapture N/A self _method N/A N/A N/A N/A self _capturing start_capturing N/A reset_capturings N/A N/A self N/A N/A N/A cap N/A N/A N/A self __dict__ pop _capturing None N/A N/A cap None N/A N/A N/A N/A cap pop_outerr_to_orig N/A N/A N/A cap stop_capturing N/A resumecapture N/A N/A self N/A N/A N/A N/A N/A N/A self _capturing resume_capturing N/A suspendcapture N/A N/A self in_ N/A False N/A N/A N/A N/A self deactivate_funcargs N/A cap N/A getattr self _capturing None N/A N/A cap None N/A N/A N/A N/A outerr N/A N/A cap readouterr N/A N/A N/A N/A cap suspend_capturing in_ in_ N/A outerr N/A activate_funcargs N/A N/A self pyfuncitem N/A N/A N/A capfuncarg N/A N/A N/A pyfuncitem __dict__ pop _capfuncarg None N/A N/A capfuncarg None N/A N/A N/A N/A capfuncarg _start N/A N/A self _capfuncarg capfuncarg N/A deactivate_funcargs N/A N/A self N/A N/A N/A capfuncarg N/A N/A N/A self __dict__ pop _capfuncarg None N/A N/A capfuncarg None N/A N/A N/A N/A capfuncarg close N/A pytest_make_collect_report N/A N/A self collector N/A N/A N/A N/A isinstance collector N/A pytest File N/A N/A N/A N/A self resumecapture N/A outcome N/A N/A N/A out err N/A N/A self suspendcapture N/A rep N/A N/A outcome get_result N/A out N/A N/A N/A N/A N/A rep sections append N/A Captured stdout out N/A err N/A N/A N/A N/A N/A rep sections append N/A Captured stderr err N/A N/A N/A N/A N/A N/A pytest hookimpl hookwrapper True pytest_runtest_setup N/A N/A self item N/A N/A N/A N/A N/A self resumecapture N/A N/A N/A N/A N/A self suspendcapture_item item setup N/A N/A N/A pytest hookimpl hookwrapper True pytest_runtest_call N/A N/A self item N/A N/A N/A N/A N/A self resumecapture N/A N/A N/A self activate_funcargs item N/A N/A N/A N/A N/A self suspendcapture_item item call N/A N/A N/A pytest hookimpl hookwrapper True pytest_runtest_teardown N/A N/A self item N/A N/A N/A N/A N/A self resumecapture N/A N/A N/A N/A N/A self suspendcapture_item item teardown N/A N/A N/A pytest hookimpl hookwrapper True pytest_keyboard_interrupt N/A N/A self excinfo N/A N/A N/A N/A N/A self reset_capturings N/A N/A N/A pytest hookimpl tryfirst True pytest_internalerror N/A N/A self excinfo N/A N/A N/A N/A N/A self reset_capturings N/A N/A N/A pytest hookimpl tryfirst True suspendcapture_item N/A N/A self item when N/A N/A N/A N/A out err N/A N/A self suspendcapture N/A N/A N/A item add_report_section when stdout out N/A N/A N/A item add_report_section when stderr err N/A N/A N/A error_capsysfderror cannot use capsys and capfd at the same time capsys N/A N/A request N/A N/A N/A enables capturing of writes to sys.stdout/sys.stderr and makes
    captured output available via ``capsys.readouterr()`` method calls
    which return a ``(out, err)`` tuple.
     N/A N/A capfd N/A request _funcargs N/A N/A N/A N/A request raiseerror error_capsysfderror N/A N/A N/A request node _capfuncarg c N/A CaptureFixture SysCapture N/A c N/A N/A pytest fixture capfd N/A N/A request N/A N/A N/A enables capturing of writes to file descriptors 1 and 2 and makes
    captured output available via ``capfd.readouterr()`` method calls
    which return a ``(out, err)`` tuple.
     N/A N/A capsys N/A request _funcargs N/A N/A N/A N/A request raiseerror error_capsysfderror N/A N/A N/A hasattr os dup N/A N/A N/A N/A pytest skip capfd funcarg needs os.dup N/A N/A N/A request node _capfuncarg c N/A CaptureFixture FDCapture N/A c N/A N/A pytest fixture CaptureFixture N/A N/A __init__ N/A N/A self captureclass N/A N/A N/A N/A self captureclass captureclass N/A _start N/A N/A self N/A N/A N/A N/A self _capture N/A MultiCapture out True err True in_ False Capture N/A self captureclass N/A N/A N/A N/A self _capture start_capturing N/A close N/A N/A self N/A N/A N/A cap N/A N/A N/A self __dict__ pop _capture None N/A N/A cap None N/A N/A N/A self _outerr N/A N/A cap pop_outerr_to_orig N/A N/A N/A cap stop_capturing N/A readouterr N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self _capture readouterr N/A N/A N/A AttributeError N/A N/A N/A self _outerr N/A N/A safe_text_dupfile N/A N/A f mode default_encoding N/A UTF8 N/A N/A  return a open text file object that's a duplicate of f on the
        FD-level if possible.
     N/A encoding N/A getattr f encoding None N/A N/A N/A fd N/A N/A f fileno N/A N/A N/A Exception N/A N/A N/A N/A b N/A getattr f mode N/A hasattr f encoding N/A N/A f N/A N/A newfd N/A N/A os dup fd N/A N/A b mode N/A N/A mode b N/A f N/A N/A os fdopen newfd mode 0 N/A N/A EncodedFile f N/A encoding default_encoding N/A EncodedFile N/A object N/A N/A errors strict __init__ N/A N/A self buffer encoding N/A N/A N/A N/A self buffer buffer N/A N/A self encoding encoding N/A write N/A N/A self obj N/A N/A N/A N/A isinstance obj unicode N/A N/A obj N/A N/A obj encode N/A self encoding replace N/A N/A N/A N/A self buffer write obj N/A writelines N/A N/A self linelist N/A N/A N/A data N/A N/A join linelist N/A N/A N/A self write data N/A __getattr__ N/A N/A self name N/A N/A N/A N/A getattr N/A N/A object __getattribute__ self buffer name N/A N/A MultiCapture N/A object N/A N/A out err in_ None __init__ N/A N/A self out err in_ Capture N/A True True True None N/A N/A in_ N/A N/A N/A self in_ N/A Capture 0 N/A out N/A N/A N/A self out N/A Capture 1 N/A err N/A N/A N/A self err N/A Capture 2 N/A start_capturing N/A N/A self N/A N/A N/A N/A self in_ N/A N/A N/A N/A N/A self in_ start N/A N/A self out N/A N/A N/A N/A N/A self out start N/A N/A self err N/A N/A N/A N/A N/A self err start N/A pop_outerr_to_orig N/A N/A self N/A N/A N/A  pop current snapshot out/err capture and flush to orig streams.  N/A N/A out err N/A N/A self readouterr N/A out N/A N/A N/A N/A N/A self out writeorg out N/A err N/A N/A N/A N/A N/A self err writeorg err N/A N/A out err N/A suspend_capturing N/A N/A self in_ N/A False N/A N/A N/A self out N/A N/A N/A N/A N/A self out suspend N/A N/A self err N/A N/A N/A N/A N/A self err suspend N/A N/A in_ N/A self in_ N/A N/A N/A N/A N/A self in_ suspend N/A N/A self _in_suspended True N/A resume_capturing N/A N/A self N/A N/A N/A N/A self out N/A N/A N/A N/A N/A self out resume N/A N/A self err N/A N/A N/A N/A N/A self err resume N/A N/A hasattr self _in_suspended N/A N/A N/A N/A N/A self in_ resume N/A N/A self _in_suspended N/A stop_capturing N/A N/A self N/A N/A N/A  stop capturing and reset capturing streams  N/A N/A hasattr self _reset N/A N/A N/A ValueError was already stopped N/A N/A self _reset True N/A N/A self out N/A N/A N/A N/A N/A self out done N/A N/A self err N/A N/A N/A N/A N/A self err done N/A N/A self in_ N/A N/A N/A N/A N/A self in_ done N/A readouterr N/A N/A self N/A N/A N/A  return snapshot unicode value of stdout/stderr capturings.  N/A N/A N/A N/A N/A self out None N/A N/A N/A self out snap N/A N/A N/A self err None N/A N/A N/A self err snap N/A N/A NoCapture N/A N/A N/A __init__ start done suspend resume N/A N/A N/A N/A args None N/A FDCapture N/A N/A N/A  Capture IO to/from a given os-level filedescriptor.  __init__ N/A N/A self targetfd tmpfile N/A None N/A N/A N/A self targetfd targetfd N/A N/A N/A N/A self targetfd_save N/A N/A os dup N/A self targetfd N/A N/A N/A OSError N/A N/A N/A self start N/A N/A N/A N/A None N/A N/A self done N/A N/A N/A N/A None N/A N/A N/A targetfd 0 N/A N/A N/A tmpfile cannot set tmpfile with stdin N/A tmpfile N/A open N/A os devnull r N/A N/A self syscapture N/A SysCapture targetfd N/A N/A N/A tmpfile None N/A N/A f N/A TemporaryFile N/A f N/A N/A tmpfile N/A safe_text_dupfile f mode wb+ N/A N/A targetfd patchsysdict N/A N/A N/A self syscapture N/A SysCapture targetfd tmpfile N/A N/A N/A self syscapture N/A NoCapture N/A N/A self tmpfile tmpfile N/A N/A self tmpfile_fd N/A N/A tmpfile fileno N/A __repr__ N/A N/A self N/A N/A N/A N/A <FDCapture %s oldfd=%s> N/A N/A self targetfd N/A self targetfd_save N/A start N/A N/A self N/A N/A N/A  Start capturing on targetfd using memorized tmpfile.  N/A N/A N/A N/A N/A os fstat N/A self targetfd_save N/A N/A N/A N/A AttributeError OSError N/A N/A N/A ValueError saved filedescriptor not valid anymore N/A N/A N/A os dup2 N/A self tmpfile_fd N/A self targetfd N/A N/A N/A N/A self syscapture start N/A snap N/A N/A self N/A N/A N/A f N/A self tmpfile N/A N/A N/A f seek 0 N/A res N/A N/A f read N/A res N/A N/A enc N/A getattr f encoding None N/A N/A enc N/A isinstance res bytes N/A N/A res N/A N/A N/A py builtin _totext res enc replace N/A N/A N/A f truncate 0 N/A N/A N/A f seek 0 N/A res N/A N/A done N/A N/A self N/A N/A N/A  stop capturing, restore streams, return original capture file,
        seeked to position zero.  N/A targetfd_save N/A N/A N/A self __dict__ pop targetfd_save N/A N/A N/A os dup2 targetfd_save N/A self targetfd N/A N/A N/A os close targetfd_save N/A N/A N/A N/A self syscapture done N/A N/A N/A N/A self tmpfile close N/A suspend N/A N/A self N/A N/A N/A N/A N/A N/A self syscapture suspend N/A N/A N/A os dup2 N/A self targetfd_save N/A self targetfd N/A resume N/A N/A self N/A N/A N/A N/A N/A N/A self syscapture resume N/A N/A N/A os dup2 N/A self tmpfile_fd N/A self targetfd N/A writeorg N/A N/A self data N/A N/A N/A  write to original file descriptor.  N/A N/A N/A N/A py builtin _istext data N/A N/A data N/A N/A data encode utf8 N/A N/A N/A os write N/A self targetfd_save data N/A N/A SysCapture N/A N/A __init__ N/A N/A self fd tmpfile N/A None N/A N/A name N/A patchsysdict N/A fd N/A N/A self _old N/A getattr sys name N/A N/A self name name N/A N/A tmpfile None N/A N/A N/A name stdin N/A N/A tmpfile N/A DontReadFromInput N/A N/A tmpfile N/A TextIO N/A N/A self tmpfile tmpfile N/A start N/A N/A self N/A N/A N/A N/A setattr sys N/A self name N/A self tmpfile N/A snap N/A N/A self N/A N/A N/A f N/A self tmpfile N/A res N/A N/A f getvalue N/A N/A N/A f truncate 0 N/A N/A N/A f seek 0 N/A res N/A done N/A N/A self N/A N/A N/A N/A setattr sys N/A self name N/A self _old N/A N/A self _old N/A N/A N/A N/A self tmpfile close N/A suspend N/A N/A self N/A N/A N/A N/A setattr sys N/A self name N/A self _old N/A resume N/A N/A self N/A N/A N/A N/A setattr sys N/A self name N/A self tmpfile N/A writeorg N/A N/A self data N/A N/A N/A N/A N/A N/A self _old write data N/A N/A N/A N/A self _old flush N/A N/A DontReadFromInput N/A N/A N/A Temporary stub class.  Ideally when stdin is accessed, the
    capturing should be turned off, with possibly all data captured
    so far sent to the screen.  This should be configurable, though,
    because in automated test runs it is better to crash than
    hang indefinitely.
     N/A encoding None read N/A N/A self N/A args N/A N/A N/A IOError reading from stdin while output is captured N/A N/A readline read N/A readlines read N/A __iter__ read fileno N/A N/A self N/A N/A N/A N/A ValueError redirected Stdin is pseudofile, has no fileno() N/A isatty N/A N/A self N/A N/A N/A False N/A close N/A N/A self N/A N/A N/A N/A N/A _readline_workaround N/A N/A N/A N/A N/A 
    Ensure readline is imported so that it attaches to the correct stdio
    handles on Windows.

    Pdb uses readline support where available--when not running from the Python
    prompt, the readline module is not imported until running the pdb REPL.  If
    running py.test with the --pdb option this means the readline module is not
    imported until after I/O capture has been started.

    This is a problem for pyreadline, which is often used to implement readline
    support on Windows, as it does not attach to the correct handles for stdout
    and/or stdin if they have been redirected by the FDCapture mechanism.  This
    workaround ensures that readline is imported before I/O capture is setup so
    that it can attach to the actual stdin/out for the console.

    See https://github.com/pytest-dev/pytest/pull/1281
     N/A N/A N/A N/A N/A sys platform startswith win32 N/A N/A N/A N/A N/A readline N/A N/A N/A ImportError N/A N/A N/A