Skip to content

Commit 3b570d0

Browse files
committed
DOCTEST: Write to cwd, remove unintended newline
1 parent b17b445 commit 3b570d0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

niworkflows/utils/bids.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,10 @@ def check_pipeline_version(cvers, data_desc):
441441
442442
.. testsetup::
443443
444-
>>> import json
445-
>>> data = {"PipelineDescription": {"Version": "1.1.1rc5"}}
446-
>>> desc_file = Path(tmpdir) / 'sample_dataset_description.json'
447-
>>> _ = desc_file.write_text(json.dumps(data))
444+
>>> import json
445+
>>> data = {"PipelineDescription": {"Version": "1.1.1rc5"}}
446+
>>> desc_file = Path('sample_dataset_description.json')
447+
>>> _ = desc_file.write_text(json.dumps(data))
448448
449449
Parameters
450450
----------
@@ -458,7 +458,6 @@ def check_pipeline_version(cvers, data_desc):
458458
>>> check_pipeline_version('1.1.1rc5', 'sample_dataset_description.json') is None
459459
True
460460
>>> check_pipeline_version('1.1.1rc5+129.gbe0e5158', 'sample_dataset_description.json')
461-
462461
>>> check_pipeline_version('1.2', 'sample_dataset_description.json') # doctest: +ELLIPSIS
463462
'Previous output generated ...'
464463

0 commit comments

Comments
 (0)