mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-02-18 03:30:40 +00:00
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:
@@ -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")
|
||||
+
|
||||
@@ -11,6 +11,7 @@ SRC_URI[sha256sum] = "3cda1f0ed8747339bbdf71b9f38ca74c7b592f24f65cdb3ab3765e4b02
|
||||
|
||||
SRC_URI += " \
|
||||
file://run-ptest \
|
||||
file://h-test.patch \
|
||||
"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
Reference in New Issue
Block a user