From beb40ed1d2b0503814591a37b08ecbd71f2ff729 Mon Sep 17 00:00:00 2001 From: kikobarr <34662575+kikobarr@users.noreply.github.com> Date: Sun, 7 Jun 2026 22:54:28 -0700 Subject: Fixed #37106 -- Clarified pylibmc workaround in unit test docs. --- docs/internals/contributing/writing-code/unit-tests.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/internals/contributing/writing-code/unit-tests.txt b/docs/internals/contributing/writing-code/unit-tests.txt index b6bfd5875d..11de731d71 100644 --- a/docs/internals/contributing/writing-code/unit-tests.txt +++ b/docs/internals/contributing/writing-code/unit-tests.txt @@ -39,10 +39,12 @@ that your computer doesn't have installed. You can usually figure out which package to install by doing a web search for the last line or so of the error message. Try adding your operating system to the search query if needed. -If you have trouble installing the requirements, you can skip that step. See +If you have trouble installing an optional test dependency, you can skip that +dependency locally. For example, if installing ``pylibmc`` fails, comment out +its line in ``requirements/py3.txt`` and continue with ``./runtests.py``. +Tests that require ``pylibmc`` will be skipped automatically. See :ref:`running-unit-tests-dependencies` for details on installing the optional -test dependencies. If you don't have an optional dependency installed, the -tests that require it will be skipped. +test dependencies. Running the tests requires a Django settings module that defines the databases to use. To help you get started, Django provides and uses a sample settings -- cgit v1.3