Project

General

Profile

Bug #58995

Build cassé suite au passage de charset-normalizer de 2.0.7 à 2.0.8

Added by Nicolas Roche 9 days ago. Updated 5 days ago.

Status:
Solution déployée
Priority:
Normal
Assignee:
Target version:
-
Start date:
25 Nov 2021
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:
No

Description


Files

Associated revisions

Revision 438c56cb (diff)
Added by Nicolas Roche 9 days ago

tests: skip logs added by charset-normalizer upgrade (#58995)

History

#1

Updated by Nicolas Roche 9 days ago

Manu dit que c'est request qui l'amène :

$ . /tmp/tox-nroche/passerelle/py3-django22-codestyle-coverage/bin/activate
$ pip show charset-normalizer
...
Required-by: requests

#2

Updated by Nicolas Roche 9 days ago

  • Assignee set to Nicolas Roche

charset-normalizer intercale 2 nouveaux messages de log :

$ tox -e py3-django22-codestyle-coverage -- tests/test_mdph13.py::test_dossier_http_error
(Pdb) [x.__dict__ for x in caplog.records][2]
{'name': 'charset_normalizer', 'msg': 'override steps (%i) and chunk_size (%i) as content does not fit (%i byte(s) given) parameters.', 'args': (5, 512, 3), 'levelname': 'WARNING', 'levelno': 30, 'pathname': '/tmp/tox-nroche/passerelle/py3-django22-codestyle-coverage/lib/python3.9/site-packages/charset_normalizer/api.py', 'filename': 'api.py', 'module': 'api', 'exc_info': None, 'exc_text': None, 'stack_info': None, 'lineno': 104, 'funcName': 'from_bytes', 'created': 1637853422.618588, 'msecs': 618.5879707336426, 'relativeCreated': 4962.948560714722, 'thread': 140698517501760, 'threadName': 'MainThread', 'processName': 'MainProcess', 'process': 276860, 'message': 'override steps (5) and chunk_size (512) as content does not fit (3 byte(s) given) parameters.'}
(Pdb) [x.__dict__ for x in caplog.records][3]
{'name': 'charset_normalizer', 'msg': 'Trying to detect encoding from a tiny portion of (3) byte(s).', 'args': (), 'levelname': 'WARNING', 'levelno': 30, 'pathname': '/tmp/tox-nroche/passerelle/py3-django22-codestyle-coverage/lib/python3.9/site-packages/charset_normalizer/api.py', 'filename': 'api.py', 'module': 'api', 'exc_info': None, 'exc_text': None, 'stack_info': None, 'lineno': 120, 'funcName': 'from_bytes', 'created': 1637853422.6186404, 'msecs': 618.6404228210449, 'relativeCreated': 4963.001012802124, 'thread': 140698517501760, 'threadName': 'MainThread', 'processName': 'MainProcess', 'process': 276860, 'message': 'Trying to detect encoding from a tiny portion of (3) byte(s).'}

#3

Updated by Nicolas Roche 9 days ago

Patch qui adapte le test.

#4

Updated by Thomas Noël 9 days ago

  • Status changed from Solution proposée to Solution validée

v

#5

Updated by Nicolas Roche 9 days ago

  • Status changed from Solution validée to Résolu (à déployer)
commit 438c56cba6fbaebebf39db5569748646c36a85e8
Author: Nicolas ROCHE <nroche@entrouvert.com>
Date:   Thu Nov 25 16:27:24 2021 +0100

    tests: skip logs added by charset-normalizer upgrade (#58995)
#6

Updated by Frédéric Péters (absent jusqu’au 12/12) 5 days ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF