From 3799caa4fcca37721d3dbb50fcecb15435a132ef Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 23 Sep 2017 21:07:39 +0200 Subject: [PATCH] Improve UsageError when used with --pdb It might not be clear that pytest-xdist is used at all, and this should help users to make --pdb work. --- xdist/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xdist/plugin.py b/xdist/plugin.py index b47cbe8..b7bb485 100644 --- a/xdist/plugin.py +++ b/xdist/plugin.py @@ -105,7 +105,7 @@ def pytest_cmdline_main(config): if val("dist") != "no": if usepdb: raise pytest.UsageError( - "--pdb incompatible with distributing tests.") + "--pdb is incompatible with distributing tests; try using -n0.") # noqa: E501 # ------------------------------------------------------------------------- # fixtures