Commit a5c3014ebb for bind
commit a5c3014ebb5803bfa852cb65de50c0e4f4508a1e
Merge: 93adbb480a 63a9e7a40c
Author: Andoni Duarte <andoni@isc.org>
Date: Thu Dec 3 17:01:06 2026 +0000
fix: test: Keep isctest.mark out of the nsec_synthesis conftest imports
Import `isctest.mark` only in the test modules that use it, i.e.
after `pytest_configure()` has already run in `bind/tests/system/conftest.py`.
Without the fix the import order is:
1. `bind/tests/system/conftest.py`
1. `nsec_synthesis/conftest.py`
1. `import isctest.mark` -> **this fails**
2. `pytest_configure()` (sets the environment variables)
3. `nsec_systhesis/test_*.py`
The proposed solution is to move the imports of `isctest.mark` to the
test modules that use it so that the environment is set:
1. `bind/tests/system/conftest.py`
1. `nsec_synthesis/conftest.py`
2. `pytest_configure()` (sets the environment variables)
3. `nsec_systhesis/test_*.py`
1. `import isctest.mark` -> **environment is set, OK**
The job failure that prompted this MR is https://gitlab.isc.org/isc-private/bind9/-/jobs/8578058.
Merge branch 'andoni/fix-conftest-import-isctest-mark' into 'main'
See merge request isc-projects/bind9!13232