Development #55561
Python: suppression de quelques warnings
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
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
Mis à jour par Benjamin Dauvergne il y a presque 3 ans
- Fichier 0002-python-clear-warnings-about-PY_SSIZE_T_CLEAN-55561.patch 0002-python-clear-warnings-about-PY_SSIZE_T_CLEAN-55561.patch ajouté
- Fichier 0001-python-clear-warnings-about-assertX-methods-55561.patch 0001-python-clear-warnings-about-assertX-methods-55561.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Valentin Deniaud il y a presque 3 ans
- Statut changé de Solution proposée à Solution validée
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)
Mis à jour par Benjamin Dauvergne il y a plus de 2 ans
- Statut changé de Résolu (à déployer) à Fermé
python: clear warnings about assertX methods (#55561)