enhance figleaf setup, enabled by default now (requires --figleaf). Generalize internal ability to show "hints" at the end of "-h".

--HG--
branch : trunk
This commit is contained in:
holger krekel
2010-01-02 22:48:53 +01:00
parent 1b6391d814
commit 56a936993c
10 changed files with 58 additions and 47 deletions

View File

@@ -80,8 +80,9 @@ def pytest_addoption(parser):
if execnet:
add_dist_options(parser)
else:
parser.epilog = (
"'execnet>=1.0.0b4' package required for --looponfailing / distributed testing.")
parser.hints.append(
"'execnet>=1.0.0b4' required for --looponfailing / distributed testing."
)
def add_dist_options(parser):
# see http://pytest.org/help/dist")