If pytest fallsback to pdb, it needs python-doctest module or
else it fails with:

Traceback (most recent call last):
  File \"/usr/bin/pytest\", line 11, in <module>
    load_entry_point('pytest==3.4.1', 'console_scripts', 'pytest')()
  File \"/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py\", line 
572, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File \"/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py\", line 
2755, in load_entry_point
    return ep.load()
  File \"/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py\", line 
2408, in load
    return self.resolve()
  File \"/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py\", line 
2414, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File \"/usr/lib64/python3.5/site-packages/pytest.py\", line 17, in <module>
    from _pytest.debugging import pytestPDB as __pytestPDB
  File \"/usr/lib64/python3.5/site-packages/_pytest/debugging.py\", line 5, in 
<module>
    from doctest import UnexpectedException
ImportError: No module named 'doctest'

Signed-off-by: Tim Orling <timothy.t.orl...@linux.intel.com>
---
 meta-python/recipes-devtools/python/python-pytest.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-python/recipes-devtools/python/python-pytest.inc 
b/meta-python/recipes-devtools/python/python-pytest.inc
index ecb729331..60ff83008 100644
--- a/meta-python/recipes-devtools/python/python-pytest.inc
+++ b/meta-python/recipes-devtools/python/python-pytest.inc
@@ -12,6 +12,7 @@ SRC_URI_append = " 
file://0001-setup.py-remove-the-setup_requires-for-setuptools
 RDEPENDS_${PN}_class-target += " \
     ${PYTHON_PN}-attrs \
     ${PYTHON_PN}-debugger \
+    ${PYTHON_PN}-doctest \
     ${PYTHON_PN}-json \
     ${PYTHON_PN}-pluggy \
     ${PYTHON_PN}-py \
-- 
2.13.6

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to