Projet

Général

Profil

Development #65764

tests cassés avec python3.10 : 'collections' has no attribute 'Mapping'

Ajouté par Benjamin Dauvergne il y a presque 2 ans. Mis à jour il y a presque 2 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
30 mai 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

ERROR    passerelle.resource.astregs.test:models.py:1014 Error occurred while processing request
Traceback (most recent call last):
  File "/home/bdauvergne/wd/eo/passerelle/passerelle/utils/jsonresponse.py", line 129, in api
    resp = f(*args, **kwargs)
  File "/home/bdauvergne/wd/eo/passerelle/passerelle/views.py", line 556, in perform
    result = self.endpoint(request, **params)
  File "/home/bdauvergne/wd/eo/passerelle/passerelle/apps/astregs/models.py", line 618, in link
    link.get_label()
  File "/home/bdauvergne/wd/eo/passerelle/passerelle/apps/astregs/models.py", line 938, in get_label
    self.resource.logger.error('No data found for association %s', self.association_id)
  File "/home/bdauvergne/wd/eo/passerelle/passerelle/base/models.py", line 1033, in error
    self._log('ERROR', message, *args, **kwargs)
  File "/home/bdauvergne/wd/eo/passerelle/passerelle/base/models.py", line 963, in _log
    if rl_args and len(rl_args) == 1 and isinstance(rl_args[0], collections.Mapping) and rl_args[0]:
AttributeError: module 'collections' has no attribute 'Mapping'
WARNING  django.request:log.py:222 Internal Server Error: module 'collections' has no attribute 'Mapping'

Ça a été déplacé dans collections.abc en python 3.3 mais je suppose que le retrait de collections n'a eu lieu que récemment.


Fichiers

Révisions associées

Révision 74a82fe5 (diff)
Ajouté par Benjamin Dauvergne il y a presque 2 ans

misc: import Mapping from collections.abc (#65764)

Historique

#1

Mis à jour par Benjamin Dauvergne il y a presque 2 ans

  • Assigné à mis à Benjamin Dauvergne
#2

Mis à jour par Benjamin Dauvergne il y a presque 2 ans

#3

Mis à jour par Benjamin Dauvergne il y a presque 2 ans

  • Statut changé de Solution proposée à En cours
#4

Mis à jour par Benjamin Dauvergne il y a presque 2 ans

  • Statut changé de En cours à Solution proposée
#5

Mis à jour par Benjamin Dauvergne il y a presque 2 ans

Branche rebasée.

#6

Mis à jour par Serghei Mihai il y a presque 2 ans

  • Statut changé de Solution proposée à Solution validée
#7

Mis à jour par Benjamin Dauvergne il y a presque 2 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 74a82fe54e39821ebcb949acb26b12f01e35f892
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Mon May 30 13:35:10 2022 +0200

    misc: import Mapping from collections.abc (#65764)
#8

Mis à jour par Transition automatique il y a presque 2 ans

  • Statut changé de Résolu (à déployer) à Solution déployée
#9

Mis à jour par Transition automatique il y a plus d'un an

Automatic expiration

Formats disponibles : Atom PDF