Skip to content

Improve exception message for DontReadFromInput #5086

@blueyed

Description

@blueyed

def read(self, *args):
raise IOError("reading from stdin while output is captured")

via #4996 (comment)

It should probably still contain the old string, and maybe even just emit another message before it, since this appears to be tested against at least with pytest itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions