From 8074c633c8ff30e0c5656888ae71fd81888396f4 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Wed, 2 Apr 2025 11:36:41 +0100 Subject: [PATCH] Document disabling with '-n 0' --- docs/distribution.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/distribution.rst b/docs/distribution.rst index ebbfa088..b62f787a 100644 --- a/docs/distribution.rst +++ b/docs/distribution.rst @@ -19,6 +19,8 @@ if it is not or if it fails to determine the number of logical CPUs, fall back t Pass a number, e.g. ``-n 8``, to specify the number of processes explicitly. +Use ``-n 0`` to disable xdist and run all tests in the main process. + To specify a different meaning for ``-n auto`` and ``-n logical`` for your tests, you can: