diff mbox series

[6/6] bb.tests.data: don't require the func flag for context functions

Message ID 20230801143813.2206785-6-richard.purdie@linuxfoundation.org
State Accepted, archived
Commit 83f41281ec3d9b4327ffc8e2312e1fb8f53cbf02
Headers show
Series [1/6] tests.data: add test for inline python calling a def'd function | expand

Commit Message

Richard Purdie Aug. 1, 2023, 2:38 p.m. UTC
From: Christopher Larson <kergoth@gmail.com>

Update test_python_snippet_function_reference to not require the 'func'
flag, now that we know the real function will be returned for context
functions without the flag.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
---
 lib/bb/tests/data.py | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/lib/bb/tests/data.py b/lib/bb/tests/data.py
index b7676859a6..98e430ce2a 100644
--- a/lib/bb/tests/data.py
+++ b/lib/bb/tests/data.py
@@ -80,7 +80,6 @@  class DataExpansions(unittest.TestCase):
     def test_python_snippet_function_reference(self):
         self.d.setVar("TESTVAL", "testvalue")
         self.d.setVar("testfunc", 'd.getVar("TESTVAL")')
-        self.d.setVarFlag("testfunc", "func", "1")
         context = bb.utils.get_context()
         context["testfunc"] = lambda d: d.getVar("TESTVAL")
         val = self.d.expand("${@testfunc(d)}")