summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2019-02-01 13:58:54 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-02 11:06:00 +0000
commit84e91598278158455314177d4a43a22e344a5dab (patch)
tree37924258b9c06d17740ca01f3fd2c63421250a99 /meta/lib/oeqa/runtime
parent08b16bc92b671ffaad21834b8c857713587e94bc (diff)
downloadpoky-84e91598278158455314177d4a43a22e344a5dab.tar.gz
lib/oeqa/runtime/cases/gi.py: fix deprecation warning
With newest Python, the following is printed: PyGIDeprecationWarning: GObject.markup_escape_text is deprecated; use GLib.markup_escape_text instead) (From OE-Core rev: 7b4302d84e6c9833089bd575c1083fe826082387) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime')
-rw-r--r--meta/lib/oeqa/runtime/cases/gi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/cases/gi.py b/meta/lib/oeqa/runtime/cases/gi.py
index 19073e52cb..7e16651df7 100644
--- a/meta/lib/oeqa/runtime/cases/gi.py
+++ b/meta/lib/oeqa/runtime/cases/gi.py
@@ -9,7 +9,7 @@ class GObjectIntrospectionTest(OERuntimeTestCase):
9 @OETestDepends(["ssh.SSHTest.test_ssh"]) 9 @OETestDepends(["ssh.SSHTest.test_ssh"])
10 @OEHasPackage(["python3-pygobject"]) 10 @OEHasPackage(["python3-pygobject"])
11 def test_python(self): 11 def test_python(self):
12 script = """from gi.repository import GObject; print(GObject.markup_escape_text("<testing&testing>"))""" 12 script = """from gi.repository import GLib; print(GLib.markup_escape_text("<testing&testing>"))"""
13 status, output = self.target.run("python3 -c '%s'" % script) 13 status, output = self.target.run("python3 -c '%s'" % script)
14 self.assertEqual(status, 0, msg="Python failed (%s)" % (output)) 14 self.assertEqual(status, 0, msg="Python failed (%s)" % (output))
15 self.assertEqual(output, "&lt;testing&amp;testing&gt;", msg="Unexpected output (%s)" % output) 15 self.assertEqual(output, "&lt;testing&amp;testing&gt;", msg="Unexpected output (%s)" % output)