[Pytest-commit] commit/pytest: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Mar 26 19:04:39 CET 2014
2 new commits in pytest:
https://bitbucket.org/hpk42/pytest/commits/5e861a65e190/
Changeset: 5e861a65e190
Branch: help_show_args_with_equals_instead_of_space
User: Marc Abramowitz
Date: 2014-03-26 18:47:30
Summary: _pytest/config.py: In --help, show args with `=` instead of space.
The `=` is better because it encourages folks to use the form that doesn't
suffer from issue #436 (https://bitbucket.org/hpk42/pytest/issue/436), which
can cause the arg to be treated as an "anchor" and used as the (unexpected)
path for searching for conftest.py files.
Affected #: 1 file
diff -r 3577522e05cd08a1816324793801af642efe285b -r 5e861a65e190c4c87e19807fdaf5edfc5b117ed7 _pytest/config.py
--- a/_pytest/config.py
+++ b/_pytest/config.py
@@ -436,7 +436,7 @@
if len(option) == 2 or option[2] == ' ':
return_list.append(option)
if option[2:] == short_long.get(option.replace('-', '')):
- return_list.append(option)
+ return_list.append(option.replace(' ', '='))
action._formatted_action_invocation = ', '.join(return_list)
return action._formatted_action_invocation
https://bitbucket.org/hpk42/pytest/commits/071018d4de31/
Changeset: 071018d4de31
User: hpk42
Date: 2014-03-26 19:04:35
Summary: Merged in msabramo/pytest/help_show_args_with_equals_instead_of_space (pull request #130)
_pytest/config.py: In --help, show args with `=` instead of space.
Affected #: 1 file
diff -r 3577522e05cd08a1816324793801af642efe285b -r 071018d4de31ec8d34b7663e50c4a9c633db12a9 _pytest/config.py
--- a/_pytest/config.py
+++ b/_pytest/config.py
@@ -436,7 +436,7 @@
if len(option) == 2 or option[2] == ' ':
return_list.append(option)
if option[2:] == short_long.get(option.replace('-', '')):
- return_list.append(option)
+ return_list.append(option.replace(' ', '='))
action._formatted_action_invocation = ', '.join(return_list)
return action._formatted_action_invocation
Repository URL: https://bitbucket.org/hpk42/pytest/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the pytest-commit
mailing list