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

Ensure the "longrepr" attribute is set on failing tests #4

Merged
merged 1 commit into from
Apr 23, 2022

Conversation

pablogsal
Copy link
Member

@pablogsal pablogsal commented Apr 23, 2022

Some pytest functionality relies of the fact that the "longrepr"
attribute is not None for failing tests. According to pytest type
annotations this can be a string explaining why the test failed or some
complicated traceback object. As we cannot easily make a traceback
object, we can simply put a string explaining why the test failed.

closes: #3

Some pytest functionality relies of the fact that the "longrepr"
attribute is not None for failing tests. According to pytest type
annotations this can be a string explaining why the test failed or some
complicated traceback object. As we cannot easily make a traceback
object, we can simply put a string explaining why the test failed.
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.

--memray causes built-in junit-xml results writer to fail
1 participant