From 55bca1d44ed8f6d36505e734ee8294b684c96d68 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Wed, 18 Dec 2024 12:51:21 -0500 Subject: [PATCH] FIX: More --- azure-pipelines.yml | 1 + mne/conftest.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3ca4177174f..8d66a986cf6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -157,6 +157,7 @@ stages: DISPLAY: ':99' OPENBLAS_NUM_THREADS: '1' TEST_OPTIONS: "--tb=short --cov=mne --cov-report=xml --cov-report=html --cov-append -vv mne/viz/_brain mne/viz/backends mne/viz/tests/test_evoked.py mne/gui mne/report" + MNE_IGNORE_WARNINGS_IN_TESTS: '1' # TODO: Remove steps: - bash: ./tools/setup_xvfb.sh displayName: 'Install Ubuntu dependencies' diff --git a/mne/conftest.py b/mne/conftest.py index 5d3e033e095..6ae9320fc03 100644 --- a/mne/conftest.py +++ b/mne/conftest.py @@ -119,7 +119,7 @@ def pytest_configure(config): # we should remove them from here. # - This list should also be considered alongside reset_warnings in # doc/conf.py. - if os.getenv("MNE_IGNORE_WARNINGS_IN_TESTS", "") != "true": + if os.getenv("MNE_IGNORE_WARNINGS_IN_TESTS", "") not in ("true", "1"): first_kind = "error" else: first_kind = "always"