From: Alexander Kanavin <alex.kanavin@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 3/3] lib/oeqa/runtime/cases/gi.py: fix deprecation warning
Date: Fri, 1 Feb 2019 13:58:54 +0100 [thread overview]
Message-ID: <20190201125854.88741-3-alex.kanavin@gmail.com> (raw)
In-Reply-To: <20190201125854.88741-1-alex.kanavin@gmail.com>
With newest Python, the following is printed:
PyGIDeprecationWarning: GObject.markup_escape_text is deprecated; use GLib.markup_escape_text instead)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
---
meta/lib/oeqa/runtime/cases/gi.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/lib/oeqa/runtime/cases/gi.py b/meta/lib/oeqa/runtime/cases/gi.py
index 19073e52cba..7e16651df74 100644
--- a/meta/lib/oeqa/runtime/cases/gi.py
+++ b/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, "<testing&testing>", msg="Unexpected output (%s)" % output)
--
2.17.1
next prev parent reply other threads:[~2019-02-01 12:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-01 12:58 [PATCH 1/3] python3: upgrade to 3.7.2 Alexander Kanavin
2019-02-01 12:58 ` [PATCH 2/3] python3: delete old 3.5.6 version Alexander Kanavin
2019-02-01 12:58 ` Alexander Kanavin [this message]
2019-02-01 20:49 ` [PATCH 1/3] python3: upgrade to 3.7.2 Khem Raj
2019-02-01 22:32 ` Alejandro Enedino Hernandez Samaniego
2019-02-01 22:35 ` Alejandro Enedino Hernandez Samaniego
2019-02-03 2:08 ` Yu, Mingli
2019-02-04 15:01 ` Alexander Kanavin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190201125854.88741-3-alex.kanavin@gmail.com \
--to=alex.kanavin@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox