Skip to contentSkip to conversation

tests/codeparser: Hack around circular inclusion problem

PATCH New Richard Purdie 1 participant 1 message Feb 14, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/codeparser: Hack around circular inclusion problem

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.

---

bitbake/lib/bb/tests/codeparser.py +3 -0
index 9b2d588..e544586 100644
@@ -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):