]> code.ossystems Code Review - openembedded-core.git/commit
python3-subunit: ensure runtime dependencies are present
authorTrevor Gamblin <trevor.gamblin@windriver.com>
Mon, 23 Sep 2019 15:52:38 +0000 (11:52 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 27 Sep 2019 12:01:17 +0000 (13:01 +0100)
commit7ed7dc39e379c18f757e3c326ec1466c8ab27b41
tree87e4755a0260c55c5d907001ea7075f9c4594b35
parent4433d3133ce53cdf7db17f5e7914fe8c4d78dba3
python3-subunit: ensure runtime dependencies are present

Without access to unittest, subunit cannot be imported in python3:

    root@qemux86-64:~# python3
    Python 3.7.4 (default, Sep 20 2019, 13:38:31)
    [GCC 9.2.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import subunit
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/lib/python3.7/site-packages/subunit/__init__.py", line 123, in <module>
        import unittest
    ModuleNotFoundError: No module named 'unittest'
    >>>

Adding python3-testtools to python3-subunit's RDEPENDS fixes the
issue. This also implicitly provides the functionality found in
the python3-extras module.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3-subunit_1.3.0.bb