Patchwork [bitbake-devel] tests/codeparser: Hack around circular inclusion problem

mail settings
Submitter Richard Purdie
Date Feb. 14, 2013, 9:35 p.m.
Message ID <1360877725.11225.124.camel@ted>
Download mbox | patch
Permalink /patch/44663/
State New
Headers show


Richard Purdie - Feb. 14, 2013, 9:35 p.m.
There is a circular dependency issue where 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/ b/bitbake/lib/bb/tests/
index 9b2d588..e544586 100644
--- a/bitbake/lib/bb/tests/
+++ b/bitbake/lib/bb/tests/
@@ -24,6 +24,9 @@  import bb
 logger = logging.getLogger('BitBake.TestCodeParser')
+# references bb.parse but can't directly import due to circular dependencies.
+# Hack around it for now :( 
+import bb.parse
 class ReferenceTest(unittest.TestCase):