Skip to content

Commit 68dc785

Browse files
committed
Fix style and add missing package
1 parent c233549 commit 68dc785

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ test = [
4747
"build",
4848
"matplotlib",
4949
"mne",
50+
"packaging",
5051
"pre-commit",
5152
"pytest",
5253
"pytest-cov",

tests/test_write_brainvision.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
import re
99
from datetime import datetime, timezone
1010
from importlib.metadata import version
11-
from packaging.version import Version
1211

1312
import mne
1413
import numpy as np
1514
import pytest
1615
from numpy.testing import assert_allclose, assert_array_equal
16+
from packaging.version import Version
1717

1818
from pybv.io import (
1919
SUPPORTED_FORMATS,
@@ -442,7 +442,7 @@ def test_write_read_cycle(tmpdir, meas_date, ref_ch_names):
442442
"""Test that a write/read cycle produces identical data."""
443443
# First fail writing due to wrong unit
444444
unsupported_unit = "rV"
445-
with pytest.warns(UserWarning, match="Encountered unsupported " "non-voltage unit"):
445+
with pytest.warns(UserWarning, match="Encountered unsupported non-voltage unit"):
446446
write_brainvision(
447447
data=data,
448448
sfreq=sfreq,
@@ -653,7 +653,7 @@ def test_write_unsupported_units(tmpdir):
653653

654654
# write brain vision file
655655
vhdr_fname = tmpdir / (fname + ".vhdr")
656-
with pytest.warns(UserWarning, match="Encountered unsupported " "non-voltage unit"):
656+
with pytest.warns(UserWarning, match="Encountered unsupported non-voltage unit"):
657657
write_brainvision(
658658
data=data,
659659
sfreq=sfreq,

0 commit comments

Comments
 (0)