]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix pytest-xdist loadscope splitting on "::" in params 12137/head
authorMichal Nowak <mnowak@isc.org>
Tue, 26 May 2026 16:09:21 +0000 (16:09 +0000)
committerMichal Nowak <mnowak@isc.org>
Thu, 28 May 2026 16:06:11 +0000 (18:06 +0200)
commit5f7684537fb8c932a472599a5618d2b0ffb545fe
treefa186a1a9d9ee032098b98370bf99b1dacd76966
parent789ae5a98294273f46f7b78b43e80ca9e6315c1c
Fix pytest-xdist loadscope splitting on "::" in params

LoadScopeScheduling._split_scope() uses rsplit("::", 1) to
extract the test file scope from a node ID.  When parametrized
test values contain "::" (IPv6 addresses like "cafe:cafe::cafe"
or "::1"), the split lands inside the parameter instead of at
the .py:: boundary.  This creates spurious scopes that get
assigned to different workers, each triggering a full fixture
setup (starting named instances).

Override _split_scope() in conftest.py to split on ".py::"
which is unambiguous.

Six tests in synthrecord/tests_synthrecord.py are affected.
A verification script is included in util/.

Assisted-by: Claude:claude-opus-4-7
(cherry picked from commit 4eb893020e4f285fbc82021a01d49b110d79c30c)
bin/tests/system/conftest.py