]> 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:51:25 +0000 (14:51 +0200)
checkds test requires the capture_output argument for subprocess.run()
which was added in Python 3.7.

(cherry picked from commit 0361233b3dfbb47fc544a7d4eccff71045156c26)

bin/tests/system/checkds/tests_checkds.py

index af78d7a2fe7bd7a25280ee50447ad667eb472fed..a52833eca22fe2717dd1a823c7c05ac108d20008 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