We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f15f573 commit 22a6893Copy full SHA for 22a6893
Tests/conftest.py
@@ -19,13 +19,11 @@ def pytest_configure(config):
19
# We're marking some tests to ignore valgrind errors and XFAIL them.
20
# Ensure that the mark is defined
21
# even in cases where pytest-valgrind isn't installed
22
-
23
- with warnings.catch_warnings():
24
- warnings.simplefilter("error")
25
- try:
26
- getattr(pytest.mark, "valgrind_known_error")
27
- except Exception:
28
- config.addinivalue_line(
29
- "markers",
30
- "valgrind_known_error: Tests that have known issues with valgrind",
31
- )
+ try:
+ config.addinivalue_line(
+ "markers",
+ "valgrind_known_error: Tests that have known issues with valgrind",
+ )
+ except Exception:
+ # valgrind is already installed
+ pass
0 commit comments