Skip to content

pytester: run: use (global) MultiCapture with fds? #4937

@blueyed

Description

@blueyed

I've made testdir.runpytest_subprocess work with pdb.set_trace(), but it currently requires to set stdin=None (instead of a new default (CLOSE_STDIN)), and use -s.

I think the latter could be solved by using MultiCapture also for runpytest_subprocess, and use MultiCapture(Capture=FDCapture) also for runpytest_inprocess (it uses SysCapture currently).

Then those would also need to be handled/managed by the the capmanager plugin, and this would likely allow pytest's set_trace to suspend capturing then also.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin: capturerelated to the capture builtin pluginplugin: debuggingrelated to the debugging builtin plugintype: enhancementnew feature or API change, should be merged into features branch

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions