Skip to content

Commit 7600e3c

Browse files
committed
Fix warnings.
1 parent bc7df03 commit 7600e3c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/test_cifti_cli_comprehensive.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def test_scalars_matrix_shape_flattened(self, tmp_path):
365365
out_h5 = tmp_path / 'out.h5'
366366
cifti_to_h5(cohort, output=out_h5)
367367
with h5py.File(out_h5, 'r') as h5:
368-
# pconn matrix is row-major flattened: n_subjects × (n_parcels * n_parcels)
368+
# pconn matrix is row-major flattened: n_subjects x (n_parcels * n_parcels)
369369
assert h5['scalars/FC/values'].shape == (2, n * n)
370370

371371
def test_greyordinates_size_equals_flattened_matrix(self, tmp_path):
@@ -431,7 +431,7 @@ def test_empty_cohort_raises(self, tmp_path):
431431
def test_missing_required_columns_raises(self, tmp_path):
432432
cohort = tmp_path / 'bad.csv'
433433
pd.DataFrame({'subject': ['sub-01']}).to_csv(cohort, index=False)
434-
with pytest.raises(ValueError):
434+
with pytest.raises(ValueError, match='must contain columns'):
435435
cifti_to_h5(cohort, output=tmp_path / 'out.h5')
436436

437437

0 commit comments

Comments
 (0)