python-mocket icon indicating copy to clipboard operation
python-mocket copied to clipboard

New `aiohttp>=3.10.6` gets stuck with Mocket

Open mindflayer opened this issue 1 year ago • 1 comments

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.

mindflayer avatar Sep 26 '24 08:09 mindflayer

It's again something happening when the URL scheme is HTTPS.

mindflayer avatar Oct 15 '24 11:10 mindflayer

I've just opened an issue on their side, let's see if and what they answer.

mindflayer avatar Oct 19 '24 15:10 mindflayer

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).

mindflayer avatar Oct 19 '24 16:10 mindflayer

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.

mindflayer avatar Oct 20 '24 11:10 mindflayer