<div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 23, 2019 at 8:53 AM Trevor Gamblin &lt;<a href="mailto:Trevor.Gamblin@windriver.com">Trevor.Gamblin@windriver.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Trevor Gamblin &lt;<a href="mailto:trevor.gamblin@windriver.com" target="_blank">trevor.gamblin@windriver.com</a>&gt;<br>
<br>
Without access to unittest, subunit cannot be imported in python3:<br>
<br>
    root@qemux86-64:~# python3<br>
    Python 3.7.4 (default, Sep 20 2019, 13:38:31)<br>
    [GCC 9.2.0] on linux<br>
    Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>
    &gt;&gt;&gt; import subunit<br>
    Traceback (most recent call last):<br>
      File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>
      File &quot;/usr/lib/python3.7/site-packages/subunit/__init__.py&quot;, line 123, in &lt;module&gt;<br>
        import unittest<br>
    ModuleNotFoundError: No module named &#39;unittest&#39;<br>
    &gt;&gt;&gt;<br>
<br>
Adding python3-testtools to python3-subunit&#39;s RDEPENDS fixes the<br>
issue. This also implicitly provides the functionality found in<br>
the python3-extras module.<br>
</blockquote><div dir="auto"><br></div><div dir="auto">If we literally only need unittest, then RDEPENDS on -testtools is overkill. We only need the -unittest submodule:</div><div dir="auto"><div><a href="http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/python/python3/python3-manifest.json#n1158">http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/python/python3/python3-manifest.json#n1158</a></div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Signed-off-by: Trevor Gamblin &lt;<a href="mailto:trevor.gamblin@windriver.com" target="_blank">trevor.gamblin@windriver.com</a>&gt;<br>
---<br>
 meta/recipes-devtools/python/<a href="http://python3-subunit_1.3.0.bb" rel="noreferrer" target="_blank">python3-subunit_1.3.0.bb</a> | 2 ++<br>
 1 file changed, 2 insertions(+)<br>
<br>
diff --git a/meta/recipes-devtools/python/<a href="http://python3-subunit_1.3.0.bb" rel="noreferrer" target="_blank">python3-subunit_1.3.0.bb</a> b/meta/recipes-devtools/python/<a href="http://python3-subunit_1.3.0.bb" rel="noreferrer" target="_blank">python3-subunit_1.3.0.bb</a><br>
index 2ece4451df..55066e2d0f 100644<br>
--- a/meta/recipes-devtools/python/<a href="http://python3-subunit_1.3.0.bb" rel="noreferrer" target="_blank">python3-subunit_1.3.0.bb</a><br>
+++ b/meta/recipes-devtools/python/<a href="http://python3-subunit_1.3.0.bb" rel="noreferrer" target="_blank">python3-subunit_1.3.0.bb</a><br>
@@ -1,2 +1,4 @@<br>
 inherit setuptools3<br>
 require python-subunit.inc<br>
+<br>
+RDEPENDS_${PN} = &quot; python3-testtools&quot;<br>
-- <br>
2.21.0<br>
<br>
-- <br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</blockquote></div></div>