]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Require explicit import of isctest.name in system tests
authorNicki Křížek <nicki@isc.org>
Tue, 5 Aug 2025 09:10:24 +0000 (11:10 +0200)
committerNicki Křížek <nicki@isc.org>
Tue, 5 Aug 2025 09:10:24 +0000 (11:10 +0200)
Since the isctest.name module uses `pytest.importorskip()` to check for
dnspython version, it can't be imported automatically on `import
isctest`, because that is used in conftest.py, causing an error during
test setup.

Note that this behavior only manifested on AlmaLinux 8, so perhaps newer
pytest versions are able to handle this edge case more gracefully.

This doesn't affect 9.20+, as this issue was introduced as an erroneous
conflict resolution during a 9.18 backport.

bin/tests/system/isctest/__init__.py

index 08428c9372dfc43e9dc0a2cdb30547578f87c7ac..be94f1edfb35fef63ab51f223a69a618d981d1d9 100644 (file)
@@ -12,7 +12,6 @@
 from . import check
 from . import instance
 from . import query
-from . import name
 from . import rndc
 from . import run
 from . import template