Merge pull request #233 from blueyed/improve-pdb-usage-error
Improve UsageError when used with --pdb
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user