Skip to content

Commit

Permalink
Merge pull request #172 from plotly/andrew/revise_stderr
Browse files Browse the repository at this point in the history
Andrew/revise stderr
  • Loading branch information
ayjayt authored Dec 28, 2024
2 parents e2b53bf + 1ec5f72 commit 68908cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion choreographer/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def __init__(
and not isinstance(stderr, int) ):
try: stderr.fileno()
except io.UnsupportedOperation:
warnings.warn("A value has been passed to debug_browser which is not compatible with python. The default value if deug_browser is True is whatever the value of sys.stderr is. sys.stderr may be many things but debug_browser must be a value Popen accepts for stderr, or True.")
warnings.warn("A value has been passed to debug_browser which is not compatible with python's Popen. This may be because one was passed to Browser or because sys.stderr has been overrided by a framework. Browser logs will not be handled by python in this case.")
stderr = None



Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def pytest_addoption(parser):
async def browser(request):
headless = request.config.getoption("--headless")
debug = request.config.get_verbosity() > 2
debug_browser = None if debug else False # what's going on here
debug_browser = None if debug else False
browser = await choreo.Browser(
headless=headless, debug=debug, debug_browser=debug_browser
)
Expand Down

0 comments on commit 68908cf

Please sign in to comment.