Skip to content

FakeProcess doesn't respect universal_newlines #37

@bjornt

Description

@bjornt

FakeProcess always returns stdout.getvalue() and stderr.getvalue() as they are. This is a problem when you're testing code that sometimes passe universal_newlines to the subprocess calls.

In Python 2.7, universal_newlines doesn't make much of a difference, but in Python 3, if you pass universal_newlines=True, you will get strings instead of bytes for stdout and stderr in the subprocess calls.kaasjrzrrzr

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions