We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cafd389 + 37f9fcf commit b90c73fCopy full SHA for b90c73f
Tests/conftest.py
@@ -1,7 +1,4 @@
1
import io
2
-import warnings
3
-
4
-import pytest
5
6
7
def pytest_report_header(config):
@@ -19,13 +16,11 @@ def pytest_configure(config):
19
16
# We're marking some tests to ignore valgrind errors and XFAIL them.
20
17
# Ensure that the mark is defined
21
18
# 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