Skip to contentSkip to conversation

python-pytest.inc: add ${PYTHON_PN}-doctest to RDEPENDS

PATCH New Tim Orling 1 participant 1 message Mar 2, 2018

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

PATCH 1/1 python-pytest.inc: add ${PYTHON_PN}-doctest to RDEPENDS

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'

---
 meta-python/recipes-devtools/python/python-pytest.inc | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python-pytest.inc +1 -0
index ecb729331..60ff83008 100644
@@ -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 \
Signature · 1 line
2.13.6