]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Skip checkds test on Python<3.7
authorTom Krizek <tkrizek@isc.org>
Tue, 22 Aug 2023 15:09:59 +0000 (17:09 +0200)
committerTom Krizek <tkrizek@isc.org>
Wed, 23 Aug 2023 12:06:18 +0000 (14:06 +0200)
checkds test requires the capture_output argument for subprocess.run()
which was added in Python 3.7.

bin/tests/system/checkds/tests_checkds.py

index 66932f1b4a5d48464430c190c286f1a03cb19ae1..99c91c6168a0640d8352bd4f5865e76901cdbf78 100755 (executable)
@@ -30,6 +30,11 @@ import dns.rdatatype
 import dns.resolver
 
 
+pytestmark = pytest.mark.skipif(
+    sys.version_info < (3, 7), reason="Python >= 3.7 required [GL #3001]"
+)
+
+
 def has_signed_apex_nsec(zone, response):
     has_nsec = False
     has_rrsig = False