aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/tests/codeparser.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-14 21:35:25 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-15 12:00:08 +0000
commita206ae0d7769a41ff3666d0f53ff9cf422dfa518 (patch)
tree16acd719841a5c134783456aea00e3f757e02238 /lib/bb/tests/codeparser.py
parentd5f78e98d5aba36c95288fbaac267c2d54537b02 (diff)
downloadbitbake-a206ae0d7769a41ff3666d0f53ff9cf422dfa518.tar.gz
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/tests/codeparser.py')
-rw-r--r--lib/bb/tests/codeparser.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/tests/codeparser.py b/lib/bb/tests/codeparser.py
index 9b2d5886c..e544586c9 100644
--- a/lib/bb/tests/codeparser.py
+++ b/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):