python3-testtools: Avoid traceback2 module requirement
PATCH 1/1 python3-testtools: Avoid traceback2 module requirement
traceback2 adds traceback for python2. Rather than depend on traceback2, we're python3 only so just use traceback.
This caused breakage in oe-selftest -j which uses testtools on the autobuilder using buildtools-tarball.
[YOCTO #13652]
--- .../python3-testtools/no_traceback2.patch | 22 +++++++++++++++++++ .../python/python3-testtools_2.3.0.bb | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-testtools/no_traceback2.patch
meta/recipes-devtools/python/python3-testtools/no_traceback2.patch new file +22 -0
@@ -0,0 +1,22 @@ +traceback2 adds traceback for python2. Rather than depend on traceback2, we're +python3 only so just use traceback. +This caused breakage in oe-selftest -j which uses testtools on the autobuilder +using buildtools-tarball. + +Upstream-Status: Inappropriate +Signed-off-by: Richard Purdie <[email protected]> + +Index: testtools-2.3.0/testtools/content.py +=================================================================== +--- testtools-2.3.0.orig/testtools/content.py ++++ testtools-2.3.0/testtools/content.py +@@ -19,8 +19,7 @@ import os + import sys + + from extras import try_import +-# To let setup.py work, make this a conditional import. +-traceback = try_import('traceback2') ++import traceback + + from testtools.compat import ( + _b,
meta/recipes-devtools/python/python3-testtools_2.3.0.bb +2 -0
@@ -1,2 +1,4 @@ inherit setuptools3 require python-testtools.inc + +SRC_URI += "file://no_traceback2.patch"
Signature · 1 line
2.20.1
✗ patchtest: failure for python3-testtools: Avoid traceback2 module requirement
== Series Details ==
Series: python3-testtools: Avoid traceback2 module requirement
Revision: 1
URL : https://patchwork.openembedded.org/series/21397/
State : failure
== Summary ==
Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:
* Issue Upstream-Status is Inappropriate, but no reason was provided [test_upstream_status_presence_format]
Suggested fix Include a brief reason why no_traceback2.patch is inappropriate Current Upstream-Status: Inappropriate Standard format Upstream-Status: Inappropriate [reason]
If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).
---
Guidelines: https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe