Skip to content

stdout/err capture #4

@embray

Description

@embray

When calling GAP functions like Print() which print directly to standard I/O, although it works, it doesn't pass through Python's sys.stdout, so it can't be captured by other Python code that captures I/O. In particular, pytest can't correctly capture the output of doctests where this happens.

This might be something to fix in pytest (maybe there is a plugin or option for this but I can't find one). But it might still be better for integration with other Python code if standard I/O passed through the standard Python streams somehow rather than directly to the file descriptor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions