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

Do not return our result from the pytest_pyfunc_call wrapper #61

Merged
merged 1 commit into from
Dec 2, 2022

Conversation

pablogsal
Copy link
Member

Pytest shows a warning if we return something from the
pytest_pyfunc_call wrapper as it interprets this as the test returning a
value. We are incorrecly returning the pytest test result from the
wrapper instead of whatever the test returns.

Closes: #60

Pytest shows a warning if we return something from the
pytest_pyfunc_call wrapper as it interprets this as the test returning a
value. We are incorrecly returning the pytest test result from the
wrapper instead of whatever the test returns.

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
@gaborbernat gaborbernat merged commit 5c49e7c into bloomberg:main Dec 2, 2022
@pablogsal pablogsal deleted the nowarnings branch December 2, 2022 17:32
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.

pytest-memray raises pytest.PytestReturnNotNoneWarning warnings
2 participants