summaryrefslogtreecommitdiffstats
path: root/poky/meta/lib/oeqa/runtime/cases/gi.py
diff options
context:
space:
mode:
Diffstat (limited to 'poky/meta/lib/oeqa/runtime/cases/gi.py')
-rw-r--r--poky/meta/lib/oeqa/runtime/cases/gi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poky/meta/lib/oeqa/runtime/cases/gi.py b/poky/meta/lib/oeqa/runtime/cases/gi.py
index 19073e52c..7e16651df 100644
--- a/poky/meta/lib/oeqa/runtime/cases/gi.py
+++ b/poky/meta/lib/oeqa/runtime/cases/gi.py
@@ -9,7 +9,7 @@ class GObjectIntrospectionTest(OERuntimeTestCase):
@OETestDepends(["ssh.SSHTest.test_ssh"])
@OEHasPackage(["python3-pygobject"])
def test_python(self):
- script = """from gi.repository import GObject; print(GObject.markup_escape_text("<testing&testing>"))"""
+ script = """from gi.repository import GLib; print(GLib.markup_escape_text("<testing&testing>"))"""
status, output = self.target.run("python3 -c '%s'" % script)
self.assertEqual(status, 0, msg="Python failed (%s)" % (output))
self.assertEqual(output, "&lt;testing&amp;testing&gt;", msg="Unexpected output (%s)" % output)
OpenPOWER on IntegriCloud