Make hypothesis optional for system tests

Ensure that system tests can be executed without Python hypothesis
package.

(cherry picked from commit e6a7695600)
This commit is contained in:
Nicki Křížek 2024-08-06 17:14:21 +02:00 committed by Petr Špaček
parent b277a6f1f0
commit 4d2239d169

View file

@ -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