From: "Ionen Wolkens" <ionen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/qutebrowser/, www-client/qutebrowser/files/
Date: Fri, 15 Oct 2021 15:53:39 +0000 (UTC) [thread overview]
Message-ID: <1634312636.fffd8606988d3eebc7324f6353d01469c18cfe81.ionen@gentoo> (raw)
commit: fffd8606988d3eebc7324f6353d01469c18cfe81
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 14 13:30:43 2021 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Oct 15 15:43:56 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fffd8606
www-client/qutebrowser: backport pyyaml-6.0 test fix
Closes: https://github.com/gentoo/gentoo/pull/22571
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
.../files/qutebrowser-2.3.1-pyyaml60.patch | 19 +++++++++++++++++++
www-client/qutebrowser/qutebrowser-2.3.1-r2.ebuild | 4 ++++
2 files changed, 23 insertions(+)
diff --git a/www-client/qutebrowser/files/qutebrowser-2.3.1-pyyaml60.patch b/www-client/qutebrowser/files/qutebrowser-2.3.1-pyyaml60.patch
new file mode 100644
index 00000000000..d585109b9f2
--- /dev/null
+++ b/www-client/qutebrowser/files/qutebrowser-2.3.1-pyyaml60.patch
@@ -0,0 +1,19 @@
+https://github.com/qutebrowser/qutebrowser/commit/1547a48
+From: Florian Bruhin <me@the-compiler.org>
+Date: Thu, 14 Oct 2021 09:05:07 +0200
+Subject: [PATCH] tests: Adjust for PyYAML 6.0
+--- a/tests/unit/utils/test_utils.py
++++ b/tests/unit/utils/test_utils.py
+@@ -809,8 +809,11 @@ def test_load(self):
+ assert utils.yaml_load("[1, 2]") == [1, 2]
+
+ def test_load_float_bug(self):
+- with pytest.raises(yaml.YAMLError):
++ try:
+ utils.yaml_load("._")
++ except yaml.YAMLError:
++ # Either no exception or YAMLError, not ValueError
++ pass
+
+ def test_load_file(self, tmp_path):
+ tmpfile = tmp_path / 'foo.yml'
diff --git a/www-client/qutebrowser/qutebrowser-2.3.1-r2.ebuild b/www-client/qutebrowser/qutebrowser-2.3.1-r2.ebuild
index f196542337c..3a90e9763a2 100644
--- a/www-client/qutebrowser/qutebrowser-2.3.1-r2.ebuild
+++ b/www-client/qutebrowser/qutebrowser-2.3.1-r2.ebuild
@@ -58,6 +58,10 @@ BDEPEND="
distutils_enable_tests pytest
+PATCHES=(
+ "${FILESDIR}"/${P}-pyyaml60.patch
+)
+
python_prepare_all() {
distutils-r1_python_prepare_all
next reply other threads:[~2021-10-15 15:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-15 15:53 Ionen Wolkens [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-06-28 14:45 [gentoo-commits] repo/gentoo:master commit in: www-client/qutebrowser/, www-client/qutebrowser/files/ Ionen Wolkens
2024-04-26 11:31 Ionen Wolkens
2024-03-22 2:26 Ionen Wolkens
2023-09-27 0:00 Ionen Wolkens
2023-09-18 11:57 Ionen Wolkens
2023-07-24 4:27 Ionen Wolkens
2020-07-09 17:16 Stefan Strogin
2016-03-11 3:15 Tim Harder
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=1634312636.fffd8606988d3eebc7324f6353d01469c18cfe81.ionen@gentoo \
--to=ionen@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.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