We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfea04a commit c16481bCopy full SHA for c16481b
playwright/_impl/_transport.py
@@ -33,6 +33,9 @@
33
34
# Sourced from: https://github.com/pytest-dev/pytest/blob/da01ee0a4bb0af780167ecd228ab3ad249511302/src/_pytest/faulthandler.py#L69-L77
35
def _get_stderr_fileno() -> Optional[int]:
36
+ if sys.stderr.closed:
37
+ return None
38
+
39
try:
40
return sys.stderr.fileno()
41
except (AttributeError, io.UnsupportedOperation):
0 commit comments