Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-Django for openSUSE:Factory checked in at 2022-01-13 23:20:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Django (Old) and /work/SRC/openSUSE:Factory/.python-Django.new.1892 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Django" Thu Jan 13 23:20:48 2022 rev:84 rq:945858 version:4.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Django/python-Django.changes 2022-01-11 00:01:55.949242383 +0100 +++ /work/SRC/openSUSE:Factory/.python-Django.new.1892/python-Django.changes 2022-01-13 23:20:50.508023943 +0100 @@ -1,0 +2,6 @@ +Wed Jan 12 14:16:23 UTC 2022 - Matej Cepl <mc...@suse.com> + +- Add fix_test_custom_fields_SQLite.patch fixing issues with + modern SQLite (gh#django/django#15168). + +------------------------------------------------------------------- New: ---- fix_test_custom_fields_SQLite.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Django.spec ++++++ --- /var/tmp/diff_new_pack.u12W1J/_old 2022-01-13 23:20:51.084024320 +0100 +++ /var/tmp/diff_new_pack.u12W1J/_new 2022-01-13 23:20:51.088024322 +0100 @@ -33,6 +33,11 @@ Source1: https://media.djangoproject.com/pgp/Django-%{version}.checksum.txt#/Django-%{version}.tar.gz.asc Source2: %{name}.keyring Source99: python-Django-rpmlintrc +# PATCH-FIX-UPSTREAM fix_test_custom_fields_SQLite.patch gh#django/django#15168 mc...@suse.com +# Use FlexibleFieldLookupDict which is case-insensitive mapping +# because SQLite 3.37+ returns some data type names upper-cased +# e.g. TEXT. +Patch0: fix_test_custom_fields_SQLite.patch BuildRequires: %{python_module Jinja2 >= 2.9.2} BuildRequires: %{python_module Pillow >= 6.2.0} BuildRequires: %{python_module PyYAML} ++++++ fix_test_custom_fields_SQLite.patch ++++++ >From 402ed030933ffa1af74db50f737872d48f0152bb Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak <felisiak.mari...@gmail.com> Date: Thu, 9 Dec 2021 13:21:36 +0100 Subject: [PATCH] Fixed inspectdb.tests.InspectDBTestCase.test_custom_fields() on SQLite 3.37+. Use FlexibleFieldLookupDict which is case-insensitive mapping because SQLite 3.37+ returns some data type names uppercased e.g. TEXT. --- tests/inspectdb/tests.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) --- a/tests/inspectdb/tests.py +++ b/tests/inspectdb/tests.py @@ -302,18 +302,17 @@ class InspectDBTestCase(TestCase): Introspection of columns with a custom field (#21090) """ out = StringIO() - orig_data_types_reverse = connection.introspection.data_types_reverse - try: - connection.introspection.data_types_reverse = { + with mock.patch( + 'django.db.connection.introspection.data_types_reverse.base_data_types_reverse', + { 'text': 'myfields.TextField', 'bigint': 'BigIntegerField', - } + }, + ): call_command('inspectdb', 'inspectdb_columntypes', stdout=out) output = out.getvalue() self.assertIn("text_field = myfields.TextField()", output) self.assertIn("big_int_field = models.BigIntegerField()", output) - finally: - connection.introspection.data_types_reverse = orig_data_types_reverse def test_introspection_errors(self): """