-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Support for ignoring tests when running valgrind #5150
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
Conversation
Tests/conftest.py
Outdated
warnings.simplefilter("error") | ||
try: | ||
getattr(pytest.mark, "valgrind_known_error") | ||
except: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
except: | |
except AttributeError: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's an attribute error, as it's catching a warning thrown by pytest which hooks the getattr to specifically avoid an attribute error.
Tests/conftest.py
Outdated
# Ensure that the mark is defined even in cases where pytest-valgrind isn't installed | ||
|
||
import pytest | ||
import warnings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These could go at the top of the file.
1dbfe2e
to
f546df4
Compare
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
49c5506
to
1d7c8e0
Compare
Before we can add valgrind as an experimental docker test target, we need to have all of the tests passing or known ignored.
This adds:
WIP -- there are more tests to investigate.