We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0501b79 commit 9ae5c67Copy full SHA for 9ae5c67
nipype/utils/tests/test_cmd.py
@@ -45,17 +45,21 @@ def test_main_returns_0_on_help(self):
45
assert exit_exception.code == 0
46
47
assert stderr.getvalue() == ""
48
+ if sys.version_info >= (3, 10):
49
+ options = "options"
50
+ else:
51
+ options = "optional arguments"
52
assert (
53
stdout.getvalue()
- == """usage: nipype_cmd [-h] module interface
54
+ == f"""usage: nipype_cmd [-h] module interface
55
56
Nipype interface runner
57
58
positional arguments:
59
module Module name
60
interface Interface name
61
-optional arguments:
62
+{options}:
63
-h, --help show this help message and exit
64
"""
65
)
0 commit comments