python-mocket
python-mocket copied to clipboard
New `aiohttp>=3.10.6` gets stuck with Mocket
The new release of aiohttp doesn't work - again - with Mocket.
I am starting considering getting rid of it from Mocket's testing suite and declaring it as NOT supported.
It's again something happening when the URL scheme is HTTPS.
I've just opened an issue on their side, let's see if and what they answer.
A temporary fix would be moving import aiohttp to a portion of code running while Mocket is already in control of the ssl module (see https://github.com/mindflayer/python-mocket/blob/main/tests/test_asyncio.py#L48).
Mocket 3.12.3 introduces a connector plugin for when things go wrong while testing HTTPS calls with aiohttp.
See https://github.com/mindflayer/python-mocket/blob/main/tests/test_asyncio.py#L49.