Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 30, 2020
1 parent f16cbbd commit f546df4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Tests/conftest.py
Expand Up @@ -11,17 +11,22 @@ def pytest_report_header(config):
except Exception as e:
return f"pytest_report_header failed: {e}"


def pytest_configure(config):
# We're marking some tests to ignore valgrind errors and XFAIL them.
# Ensure that the mark is defined even in cases where pytest-valgrind isn't installed
# Ensure that the mark is defined
# even in cases where pytest-valgrind isn't installed

import pytest
import warnings

import pytest

with warnings.catch_warnings():
warnings.simplefilter("error")
try:
getattr(pytest.mark, "valgrind_known_error")
except:
config.addinivalue_line("markers",
"valgrind_known_error: Tests that have known issues with valgrind")
config.addinivalue_line(
"markers",
"valgrind_known_error: Tests that have known issues with valgrind",
)

0 comments on commit f546df4

Please sign in to comment.