python3-cryptography: fix two tests

Tests depending on the hypothesis module should be skipped
if the module is not available.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Slater, Joseph
2020-07-31 09:40:01 -07:00
committed by Khem Raj
parent cb2e90d004
commit bf8ebe03b9
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
--- a/tests/hypothesis/__init__.py
+++ b/tests/hypothesis/__init__.py
@@ -3,3 +3,7 @@
# for complete details.
from __future__ import absolute_import, division, print_function
+
+import pytest
+hypothesis = pytest.importorskip("hypothesis")
+