From e6a7695600764d6e8f37556d0dd5ecfb44d73fe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicki=20K=C5=99=C3=AD=C5=BEek?= Date: Tue, 6 Aug 2024 17:14:21 +0200 Subject: [PATCH] Make hypothesis optional for system tests Ensure that system tests can be executed without Python hypothesis package. --- bin/tests/system/isctest/hypothesis/__init__.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/isctest/hypothesis/__init__.py b/bin/tests/system/isctest/hypothesis/__init__.py index 0bb73f3bab..3ae0deeb24 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