From patchwork Thu Feb 14 21:35:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel] tests/codeparser: Hack around circular inclusion problem Date: Thu, 14 Feb 2013 21:35:25 -0000 From: Richard Purdie X-Patchwork-Id: 44663 Message-Id: <1360877725.11225.124.camel@ted> To: bitbake-devel There is a circular dependency issue where bb.data can't directly depend on bb.parse. The tests were failing due to this issue which is misleading. This patch hacks around it for now. I'd rather that than not running tests at all. Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/tests/codeparser.py b/bitbake/lib/bb/tests/codeparser.py index 9b2d588..e544586 100644 --- a/bitbake/lib/bb/tests/codeparser.py +++ b/bitbake/lib/bb/tests/codeparser.py @@ -24,6 +24,9 @@ import bb logger = logging.getLogger('BitBake.TestCodeParser') +# bb.data references bb.parse but can't directly import due to circular dependencies. +# Hack around it for now :( +import bb.parse import bb.data class ReferenceTest(unittest.TestCase):