Source: flask-socketio
Version: 5.3.2-1
Severity: serious


Hello, looks like autopkgtests are now failing due to newer flask

(taking the autopkgtest log from Ubuntu, same happens on Debian ci)
444s (Reading database ... 70452 files and directories currently installed.)
444s Removing autopkgtest-satdep (0) ...
445s autopkgtest [10:03:29]: test verify.sh: [-----------------------
445s ........................E.............E
445s ======================================================================
445s ERROR: test_managed_session (__main__.TestSocketIO.test_managed_session)
445s ----------------------------------------------------------------------
445s Traceback (most recent call last):
445s   File 
"/tmp/autopkgtest.ASzlXQ/build.Le4/src/debian/tests/test_socketio.py", line 
485, in test_managed_session
445s     client = socketio.test_client(app, flask_test_client=flask_client,
445s              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
445s   File "/usr/lib/python3/dist-packages/flask_socketio/__init__.py", line 
784, in test_client
445s     return SocketIOTestClient(app, self, namespace=namespace,
445s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
445s   File "/usr/lib/python3/dist-packages/flask_socketio/test_client.py", 
line 80, in __init__
445s     self.connect(namespace=namespace, query_string=query_string,
445s   File "/usr/lib/python3/dist-packages/flask_socketio/test_client.py", 
line 117, in connect
445s     self.flask_test_client.cookie_jar.inject_wsgi(environ)
445s     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
445s AttributeError: 'FlaskClient' object has no attribute 'cookie_jar'
445s
445s ======================================================================
445s ERROR: test_unmanaged_session 
(__main__.TestSocketIO.test_unmanaged_session)
445s ----------------------------------------------------------------------
445s Traceback (most recent call last):
445s   File 
"/tmp/autopkgtest.ASzlXQ/build.Le4/src/debian/tests/test_socketio.py", line 
505, in test_unmanaged_session
445s     client = socketio.test_client(app, flask_test_client=flask_client,
445s              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
445s   File "/usr/lib/python3/dist-packages/flask_socketio/__init__.py", line 
784, in test_client
445s     return SocketIOTestClient(app, self, namespace=namespace,
445s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
445s   File "/usr/lib/python3/dist-packages/flask_socketio/test_client.py", 
line 80, in __init__
445s     self.connect(namespace=namespace, query_string=query_string,
445s   File "/usr/lib/python3/dist-packages/flask_socketio/test_client.py", 
line 117, in connect
445s     self.flask_test_client.cookie_jar.inject_wsgi(environ)
445s     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
445s AttributeError: 'FlaskClient' object has no attribute 'cookie_jar'
445s
445s ----------------------------------------------------------------------
445s Ran 39 tests in 0.049s
445s
445s FAILED (errors=2)
445s autopkgtest [10:03:29]: test verify.sh: -----------------------]
445s autopkgtest [10:03:29]: test verify.sh:  - - - - - - - - - - results - - - 
- - - - - - -
445s verify.sh            FAIL non-zero exit status 1
446s autopkgtest [10:03:30]: @@@@@@@@@@@@@@@@@@@@ summary
446s verify.sh            FAIL non-zero exit status 1
456s Creating nova instance 
adt-noble-amd64-flask-socketio-20240213-095602-juju-7f2275-prod-proposed-migration-environment-3
 from image adt/ubuntu-noble-amd64-server-20240213.img (UUID 
25679943-9d0a-4f95-9d90-759bbb713965)...

This commit might be the fix
https://github.com/miguelgrinberg/flask-socketio/commit/70203246bcbc23715350ca5505527b31bf0693c1


G.

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to