]> git.ipfire.org Git - thirdparty/bind9.git/commit
Rework imports in dnspython-based system tests
authorMichał Kępień <michal@isc.org>
Mon, 14 Mar 2022 07:59:32 +0000 (08:59 +0100)
committerMichał Kępień <michal@isc.org>
Mon, 14 Mar 2022 08:19:03 +0000 (09:19 +0100)
commit30bbbc7aef4ccd8a1fbc1de4ad79b3e74b605d87
tree3929ff75dce2d34a675be95c702a249cc32ba9c1
parent45bbb518d52025c576f2c8b726d0446dc968f6fc
Rework imports in dnspython-based system tests

Ensure all "import dns.*" statements are always placed after
pytest.importorskip('dns') calls, in order to allow the latter to
fulfill their purpose.  Explicitly import all dnspython modules used by
each dnspython-based test to avoid relying on nested imports.  Replace
function-scoped imports with global imports to reduce code duplication.

(cherry picked from commit 49312d6bb2e4d4c7fe513e6832f0521394bb37f6)
bin/tests/system/checkds/tests-checkds.py
bin/tests/system/shutdown/tests-shutdown.py
bin/tests/system/timeouts/tests-tcp.py
bin/tests/system/wildcard/tests-wildcard.py