Projet

Général

Profil

Development #55561

Python: suppression de quelques warnings

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

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
13 juillet 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

  • warnings dans les tests du binding python, du style
    /home/bdauvergne/wd/eo/lasso/bindings/python/tests/./profiles_tests.py:219: DeprecationWarning: Please use assertTrue instead.
      self.failUnless('<action>do</action>' in extensionsList[0])
  • warnings lors de l'utilisation du binding (vu via les tests django-mellon)
    tests/test_sso_slo.py: 342 warnings
      /home/bdauvergne/.tmp/tox-bdauvergne/django-mellon/py3-dj111-pg/lib/python3.9/site-packages/lasso.py:1918: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
        rc = _lasso.profile_set_identity_from_dump(self._cptr, str2lasso(dump))

Fichiers

Révisions associées

Révision b6321b4d (diff)
Ajouté par Benjamin Dauvergne il y a presque 3 ans

python: clear warnings about assertX methods (#55561)

Révision 149de8cd (diff)
Ajouté par Benjamin Dauvergne il y a presque 3 ans

python: clear warnings about PY_SSIZE_T_CLEAN (#55561)

Using the python3 bindings on recent python3 >=3.8 versions shows:

DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats

https://docs.python.org/3.9/whatsnew/changelog.html?highlight=py_ssize_t_clean#id193

Historique

#2

Mis à jour par Valentin Deniaud il y a presque 3 ans

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

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

  • Statut changé de Solution validée à Résolu (à déployer)
commit 149de8cd0b495d9aad8cb449142b5908122026f7
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Tue Jul 13 13:21:01 2021 +0200

    python: clear warnings about PY_SSIZE_T_CLEAN (#55561)

    Using the python3 bindings on recent python3 >=3.8 versions shows:

       DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats

    https://docs.python.org/3.9/whatsnew/changelog.html?highlight=py_ssize_t_clean#id193

commit b6321b4db2ba02b67efda7dd5418511db3353d93
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Tue Jul 13 13:20:47 2021 +0200

    python: clear warnings about assertX methods (#55561)
#4

Mis à jour par Benjamin Dauvergne il y a plus de 2 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF