[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1123122: django-maintenancemode: FTBFS: dh_auto_test: error: pybuild --test -i python{version} -p "3.14 3.13" --system=custom --test-args="PYTHONPATH=. {interpreter} -m pytest" returned exit code 13



Control: reassign -1 python3-django 3:4.2.26-1
Control: affects -1 src:django-maintenancemode
Control: fixed -1 3:4.2.27-2
Control: close -1

On Tue, Dec 16, 2025 at 07:42:55PM +0000, Santiago Vila wrote:
/usr/lib/python3/dist-packages/django/template/context.py:158: in __copy__
   duplicate = super().__copy__()
               ^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = [{'True': True, 'False': False, 'None': None}, {'is_email': True, 'unicode_hint': '', 'frames': [{'exc_cause': None, '...lf):'], 'pre_context_lineno': 32, 'colno': '\n            ^^^^^^^^^^^^^^^', 'tb_area_colno': '\n    ^^^^^^^^^^^^^^^'}}]

   def __copy__(self):
       duplicate = copy(super())
      duplicate.dicts = self.dicts[:]
       ^^^^^^^^^^^^^^^
E       AttributeError: 'super' object has no attribute 'dicts' and no __dict__ for setting new attributes

Fixed by python-django 3:4.2.27-2:

python-django (3:4.2.27-2) unstable; urgency=medium

   * Team upload.
   * Backport various upstream fixes for newer Python versions (closes:
     #1122185):
     - Fixed tests for test --parallel option on Python 3.14+.
     - Fixed copying BaseContext and its subclasses on Python 3.14+.
     - Fixed OtherModelFormTests.test_prefetch_related_queryset() test on
       Python 3.14+.
     - Adjusted test_strip_tags following Python behavior change for
       incomplete entities.
   * Revert "Mark that Python 3.14 is not supported yet", since it now is.

  -- Colin Watson <cjwatson@debian.org>  Wed, 17 Dec 2025 10:23:30 +0000

--
Colin Watson (he/him)                              [cjwatson@debian.org]


Reply to: