[oe] [meta-python][morty][PATCH] python-cryptography: Add python-pytz in RDEPENDS to fix ptest failures

Jagadeesh Krishnanjanappa jkrishnanjanappa at mvista.com
Mon Jun 4 11:26:09 UTC 2018


It fixes below test failure:
-- snip --
ImportError while importing test module '/usr/lib64/python-cryptography/ptest/tests/test_x509.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_x509.py:17: in <module>
    import pytz
E   ImportError: No module named pytz
-- snip --

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa at mvista.com>
---
 meta-python/recipes-devtools/python/python-cryptography.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-python/recipes-devtools/python/python-cryptography.inc b/meta-python/recipes-devtools/python/python-cryptography.inc
index 4be7907..13d2ba8 100644
--- a/meta-python/recipes-devtools/python/python-cryptography.inc
+++ b/meta-python/recipes-devtools/python/python-cryptography.inc
@@ -39,6 +39,7 @@ RDEPENDS_${PN}-ptest += " \
     ${PYTHON_PN}-iso8601 \
     ${PYTHON_PN}-pretend \
     ${PYTHON_PN}-pytest \
+    ${PYTHON_PN}-pytz \
 "
 
 inherit ptest
-- 
2.7.4




More information about the Openembedded-devel mailing list