]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use isctest library to check hypothesis version
authorPetr Špaček <pspacek@isc.org>
Mon, 2 Jun 2025 11:06:54 +0000 (13:06 +0200)
committerPetr Špaček <pspacek@isc.org>
Tue, 29 Jul 2025 08:00:45 +0000 (10:00 +0200)
Side-effect of importing from isctest.hypothesis first is a version
check and clean Pytest skip if version is too old.

bin/tests/system/dnssec/tests_nsec3.py

index b06a3772fa5ecac50839eb84e87e49fe77563a82..1f01074edb24f4b9406d69daf7e7f63e61b06981 100755 (executable)
@@ -27,12 +27,12 @@ import dns.rdataclass
 import dns.rdatatype
 import dns.rrset
 
-from hypothesis import assume, given
-
 from isctest.hypothesis.strategies import dns_names
 import isctest
 import isctest.name
 
+from hypothesis import assume, given
+
 SUFFIX = dns.name.from_text("nsec3.example.")
 AUTH = "10.53.0.3"
 RESOLVER = "10.53.0.4"