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 659b0e6 commit 28bba74Copy full SHA for 28bba74
playwright/_impl/_transport.py
@@ -29,7 +29,7 @@ def _get_stderr_fileno() -> Optional[int]:
29
# pytest-xdist monkeypatches sys.stderr with an object that is not an actual file.
30
# https://docs.python.org/3/library/faulthandler.html#issue-with-file-descriptors
31
# This is potentially dangerous, but the best we can do.
32
- if not hasattr(sys, "__stderr__"):
+ if not hasattr(sys, "__stderr__") or not sys.__stderr__:
33
return None
34
return sys.__stderr__.fileno()
35
0 commit comments