Skip to content

Commit 578a4ad

Browse files
committed
STY: Pacify flake8
1 parent 4db6968 commit 578a4ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

niworkflows/interfaces/tests/test_bids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def test_DerivativesDataSink_build_path(
300300
**entities,
301301
)
302302

303-
if type(expectation) == type(Exception):
303+
if isinstance(expectation, type):
304304
with pytest.raises(expectation):
305305
dds.run()
306306
return

0 commit comments

Comments
 (0)