File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change
1
+ import os
2
+ import pytest
3
+
4
+ # For debugging in IDE's don't catch raised exceptions and let the IDE
5
+ # break at it
6
+ if os .getenv ("_PYTEST_RAISE" , "0" ) != "0" :
7
+
8
+ @pytest .hookimpl (tryfirst = True )
9
+ def pytest_exception_interact (call ):
10
+ raise call .excinfo .value
11
+
12
+ @pytest .hookimpl (tryfirst = True )
13
+ def pytest_internalerror (excinfo ):
14
+ raise excinfo .value
Original file line number Diff line number Diff line change @@ -7,6 +7,5 @@ def test_dcm2niix():
7
7
task .inputs .out_dir = "test-data"
8
8
task .inputs .compress = "y"
9
9
assert (
10
- task .cmdline
11
- == "dcm2niix -o 'test-data' -f 'out_file' -z y 'test-data/test_dicoms'"
10
+ task .cmdline == "dcm2niix -o test-data -f out_file -z y test-data/test_dicoms"
12
11
)
Original file line number Diff line number Diff line change @@ -362,7 +362,7 @@ class Dcm2Niix(ShellCommandTask):
362
362
>>> task.inputs.out_dir = "test-data"
363
363
>>> task.inputs.compress = "y"
364
364
>>> task.cmdline
365
- "dcm2niix -o ' test-data' -f ' out_file' -z y ' test-data/test_dicoms' "
365
+ "dcm2niix -o test-data -f out_file -z y test-data/test_dicoms"
366
366
"""
367
367
368
368
input_spec = Dcm2NiixInputSpec
You can’t perform that action at this time.
0 commit comments