Warn if Session.body.write called in async iter context
A warning will be issued in the following situation: ``` >>> def filter(session: Session): ... async with session.body as body_iter: ... await session.body.write(b"spam") >>> test_runner(filter) UserWarning: it looks as if BodyAccessor.write() was called on an instance from within it's own async context await session.body.write(b"spam") ```
Loading
Please register or sign in to comment