Merge pull request #233 from blueyed/improve-pdb-usage-error

Improve UsageError when used with --pdb
This commit is contained in:
Ronny Pfannschmidt
2017-10-05 13:19:25 +02:00
committed by GitHub

View File

@@ -115,7 +115,7 @@ def pytest_cmdline_main(config):
if val("dist") != "no": if val("dist") != "no":
if usepdb: if usepdb:
raise pytest.UsageError( raise pytest.UsageError(
"--pdb incompatible with distributing tests.") "--pdb is incompatible with distributing tests; try using -n0.") # noqa: E501
# ------------------------------------------------------------------------- # -------------------------------------------------------------------------
# fixtures # fixtures