From bf8ebe03b9548ddf1eefc83df52f34681d28fbe2 Mon Sep 17 00:00:00 2001 From: "Slater, Joseph" Date: Fri, 31 Jul 2020 09:40:01 -0700 Subject: 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 Acked-by: Trevor Gamblin Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-cryptography/h-test.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-cryptography/h-test.patch (limited to 'meta-python/recipes-devtools/python/python3-cryptography/h-test.patch') diff --git a/meta-python/recipes-devtools/python/python3-cryptography/h-test.patch b/meta-python/recipes-devtools/python/python3-cryptography/h-test.patch new file mode 100644 index 0000000000..9f07c73803 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-cryptography/h-test.patch @@ -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") ++ -- cgit v1.2.3-54-g00ecf