Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | traceback2 adds traceback for python2. Rather than depend on traceback2, we're |
| 2 | python3 only so just use traceback. |
| 3 | This caused breakage in oe-selftest -j which uses testtools on the autobuilder |
| 4 | using buildtools-tarball. |
| 5 | |
| 6 | Upstream-Status: Inappropriate [Our recipe is python3 specific] |
| 7 | (Once py2 is EOL upstream probably could/should take this) |
| 8 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
| 9 | |
| 10 | Index: testtools-2.3.0/testtools/content.py |
| 11 | =================================================================== |
| 12 | --- testtools-2.3.0.orig/testtools/content.py |
| 13 | +++ testtools-2.3.0/testtools/content.py |
| 14 | @@ -19,8 +19,7 @@ import os |
| 15 | import sys |
| 16 | |
| 17 | from extras import try_import |
| 18 | -# To let setup.py work, make this a conditional import. |
| 19 | -traceback = try_import('traceback2') |
| 20 | +import traceback |
| 21 | |
| 22 | from testtools.compat import ( |
| 23 | _b, |