Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-mysqlclient for openSUSE:Factory checked in at 2021-09-13 16:24:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-mysqlclient (Old) and /work/SRC/openSUSE:Factory/.python-mysqlclient.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mysqlclient" Mon Sep 13 16:24:23 2021 rev:12 rq:917898 version:2.0.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-mysqlclient/python-mysqlclient.changes 2021-03-21 23:19:29.728721219 +0100 +++ /work/SRC/openSUSE:Factory/.python-mysqlclient.new.1899/python-mysqlclient.changes 2021-09-13 16:24:54.070770377 +0200 @@ -1,0 +2,6 @@ +Fri Sep 10 07:48:36 UTC 2021 - Steve Kowalik <steven.kowa...@suse.com> + +- Add liberally-accept-charsets.patch: + * Support multibyte utf8 return values with new versions of MariaDB. + +------------------------------------------------------------------- New: ---- liberally-accept-charsets.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-mysqlclient.spec ++++++ --- /var/tmp/diff_new_pack.0VQulZ/_old 2021-09-13 16:24:54.534770914 +0200 +++ /var/tmp/diff_new_pack.0VQulZ/_new 2021-09-13 16:24:54.538770919 +0200 @@ -1,5 +1,5 @@ # -# spec file for package python-mysqlclient-test +# spec file # # Copyright (c) 2021 SUSE LLC # @@ -35,6 +35,7 @@ License: GPL-2.0-or-later URL: https://github.com/PyMySQL/mysqlclient-python Source: https://files.pythonhosted.org/packages/source/m/mysqlclient/mysqlclient-%{version}.tar.gz +Patch0: liberally-accept-charsets.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -69,6 +70,7 @@ %prep %setup -q -n mysqlclient-%{version} +%autopatch -p1 %build %if !%{with test} ++++++ liberally-accept-charsets.patch ++++++ Index: mysqlclient-2.0.3/tests/test_MySQLdb_capabilities.py =================================================================== --- mysqlclient-2.0.3.orig/tests/test_MySQLdb_capabilities.py +++ mysqlclient-2.0.3/tests/test_MySQLdb_capabilities.py @@ -189,12 +189,14 @@ VALUES (1, with closing(connection_factory(**kwargs)) as conn: with closing(conn.cursor()) as c: c.execute("SELECT CHARSET(%s)", (MySQLdb.Binary(b"raw bytes"),)) - self.assertEqual( - c.fetchall()[0][0], "binary" if binary_prefix else "utf8" - ) + res = ("utf8", "utf8mb3", "utf8mb4") + if binary_prefix: + self.assertEqual(c.fetchall()[0][0], "binary") + else: + self.assertIn(c.fetchall()[0][0], res) # normal strings should not get prefix c.execute("SELECT CHARSET(%s)", ("str",)) - self.assertEqual(c.fetchall()[0][0], "utf8") + self.assertIn(c.fetchall()[0][0], res) if __name__ == "__main__":