Skip to content
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

Environment variable to mute the macOS warning #254

Closed
1 task done
tonybaloney opened this issue Nov 16, 2022 · 1 comment
Closed
1 task done

Environment variable to mute the macOS warning #254

tonybaloney opened this issue Nov 16, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@tonybaloney
Copy link
Contributor

Is there an existing proposal for this?

  • I have searched the existing proposals

Is your feature request related to a problem?

pprint(":warning: [bold red] Memray support in MacOS is still experimental [/]:warning:", file=sys.stderr)
pprint("[yellow]Please report any issues at https://github.com/bloomberg/memray/issues[/]", file=sys.stderr)
pprint("", file=sys.stderr)
writes to stderr when running on macOS

My tests monitor stderr and fail when running with memray because stderr has unexpected output (the warning message)

Describe the solution you'd like

The ability to have a flag/environment variable to mute this warning message

Alternatives you considered

No response

@godlygeek
Copy link
Contributor

Duplicate of #194 (which has #250 as a proposed solution).

We're trying to avoid adding an environment variable for suppressing warnings, since it requires manual steps to avoid the problem from the part of people using pytest-memray. That said, there are some drawbacks to just moving where we print the warning, too...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants