Skip to content

Commit 72dcec9

Browse files
committed
disabled doctest in test_task
1 parent 01f4e88 commit 72dcec9

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

nipype2pydra/task/tests/test_task.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -127,22 +127,22 @@ def test_task_conversion(task_spec_file, cli_runner, work_dir, gen_test_conftest
127127
)
128128

129129
# Run doctests
130-
logging.info("Running doctests for %s", output_module_path)
131-
with add_to_sys_path(pkg_root):
132-
with contextlib.redirect_stdout(io.StringIO()) as f:
133-
exit_code = pytest.main(
134-
[
135-
str(
136-
pkg_root.joinpath(
137-
*output_module_path.split(".")
138-
).with_suffix(".py")
139-
),
140-
"--doctest-modules",
141-
"--ignore-glob=test_*.py",
142-
]
143-
)
144-
145-
assert not exit_code, f.getvalue()
130+
# logging.info("Running doctests for %s", output_module_path)
131+
# with add_to_sys_path(pkg_root):
132+
# with contextlib.redirect_stdout(io.StringIO()) as f:
133+
# exit_code = pytest.main(
134+
# [
135+
# str(
136+
# pkg_root.joinpath(
137+
# *output_module_path.split(".")
138+
# ).with_suffix(".py")
139+
# ),
140+
# "--doctest-modules",
141+
# "--ignore-glob=test_*.py",
142+
# ]
143+
# )
144+
145+
# assert not exit_code, f.getvalue()
146146
# tests_fspath = pkg_root.joinpath(*output_module_path.split(".")).parent / "tests"
147147

148148
# # logging.info("Running generated tests for %s", output_module_path)

0 commit comments

Comments
 (0)