Skip to content

Commit

Permalink
Replace deprecated mne.utils.requires_version (#105)
Browse files Browse the repository at this point in the history
This function is deprecated and will be removed in a future release; see:

mne-tools/mne-python@84da555

Use the recommended replacement pytest.importorskip() instead.
  • Loading branch information
musicinmybrain authored Oct 4, 2023
1 parent 8953eff commit 35f4e8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pybv/tests/test_bv_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import mne
import numpy as np
import pytest
from mne.utils import requires_version
from numpy.testing import assert_allclose, assert_array_equal

from pybv.io import (
Expand Down Expand Up @@ -406,7 +405,6 @@ def test_bad_meas_date(tmpdir, meas_date, match):
)


@requires_version("mne", min_version="0.22")
@pytest.mark.parametrize(
"ch_names_tricky",
[
Expand All @@ -416,6 +414,7 @@ def test_bad_meas_date(tmpdir, meas_date, match):
)
def test_comma_in_ch_name(tmpdir, ch_names_tricky):
"""Test that writing channel names with special characters works."""
mne = pytest.importorskip("mne", minversion="0.22")
# write and read data to BV format
write_brainvision(
data=data,
Expand Down

0 comments on commit 35f4e8b

Please sign in to comment.