meta-openembedded/meta-python/recipes-devtools/python/python3-cryptography/h-test.patch
Slater, Joseph bf8ebe03b9 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>
2020-08-06 10:26:29 -07:00

11 lines
246 B
Diff

--- 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")
+