Skip to content

Commit ab2e0b8

Browse files
committed
TEST: Fix import/indentation errors
1 parent 51016a7 commit ab2e0b8

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

nibabel/streamlines/tests/test_array_sequence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def _test_binary(op, arrseq, scalars, seqs, inplace=False):
420420

421421
with pytest.raises(TypeError):
422422
_test_binary(op, seq_int, [0.5], [], inplace=True) # int <-- float
423-
with pytest.raises(TypeError):
423+
with pytest.raises(TypeError):
424424
_test_binary(op, seq_int, [], [seq], inplace=True) # int <-- float
425425

426426

nibabel/streamlines/tests/test_tractogram.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from collections import defaultdict
88

99
import pytest
10-
from ....testing_pytest import assert_arrays_equal, clear_and_catch_warnings
10+
from ...testing_pytest import assert_arrays_equal, clear_and_catch_warnings
1111
from numpy.testing import assert_array_equal, assert_array_almost_equal
1212
import pytest; pytestmark = pytest.mark.skip()
1313

@@ -632,7 +632,7 @@ def test_creating_invalid_tractogram(self):
632632

633633
with pytest.raises(ValueError):
634634
Tractogram(streamlines=DATA['streamlines'],
635-
data_per_streamline={'properties': properties})
635+
data_per_streamline={'properties': properties})
636636

637637
# Inconsistent dimension for a data_per_point.
638638
scalars = [[(1, 0, 0)]*1,
@@ -650,7 +650,7 @@ def test_creating_invalid_tractogram(self):
650650

651651
with pytest.raises(ValueError):
652652
Tractogram(streamlines=DATA['streamlines'],
653-
data_per_streamline={'properties': properties})
653+
data_per_streamline={'properties': properties})
654654

655655
# Too many dimension for a data_per_streamline.
656656
properties = [np.array([[1.11], [1.22]], dtype="f4"),
@@ -659,7 +659,7 @@ def test_creating_invalid_tractogram(self):
659659

660660
with pytest.raises(ValueError):
661661
Tractogram(streamlines=DATA['streamlines'],
662-
data_per_streamline={'properties': properties})
662+
data_per_streamline={'properties': properties})
663663

664664
def test_tractogram_apply_affine(self):
665665
tractogram = DATA['tractogram'].copy()
@@ -813,16 +813,12 @@ def test_lazy_tractogram_creation(self):
813813
# function.
814814
with pytest.raises(TypeError):
815815
LazyTractogram(streamlines=streamlines)
816-
817816
with pytest.raises(TypeError):
818817
LazyTractogram(data_per_point={"none": None})
819-
820-
with pytest.raises(TypeError):
818+
with pytest.raises(TypeError):
821819
LazyTractogram(data_per_streamline=data_per_streamline)
822-
823-
with pytest.raises(TypeError):
824-
LazyTractogram(streamlines=DATA['streamlines'],
825-
data_per_point=data_per_point)
820+
with pytest.raises(TypeError):
821+
LazyTractogram(streamlines=DATA['streamlines'], data_per_point=data_per_point)
826822

827823
# Empty `LazyTractogram`
828824
tractogram = LazyTractogram()

0 commit comments

Comments
 (0)