From: Nicki Křížek Date: Tue, 6 Aug 2024 15:14:21 +0000 (+0200) Subject: Make hypothesis optional for system tests X-Git-Tag: v9.21.0~14^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e6a7695600764d6e8f37556d0dd5ecfb44d73fe3;p=thirdparty%2Fbind9.git Make hypothesis optional for system tests Ensure that system tests can be executed without Python hypothesis package. --- diff --git a/bin/tests/system/isctest/hypothesis/__init__.py b/bin/tests/system/isctest/hypothesis/__init__.py index 0bb73f3babe..3ae0deeb24d 100644 --- a/bin/tests/system/isctest/hypothesis/__init__.py +++ b/bin/tests/system/isctest/hypothesis/__init__.py @@ -9,5 +9,10 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. -from . import settings -from . import strategies +try: + import hypothesis as _ +except ImportError: + pass +else: + from . import settings + from . import strategies