Skip to content

Fix: Playwright fails if you suppress stderr (#1098) #1100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 13, 2022

Conversation

AlberLC
Copy link
Contributor

@AlberLC AlberLC commented Jan 12, 2022

No description provided.

@mxschmitt
Copy link
Member

Hello, thank you for your contribution! I think it would be better to check if the stderr is closed, and if so, return None. Something like that:

        if sys.stderr.closed:
            return None

This should lead to the same behaviour but is more explicit.

@mxschmitt mxschmitt merged commit c16481b into microsoft:main Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants