Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: New DeprecationWarning with aiohttp 3.9.4 #835

Closed
musicinmybrain opened this issue Apr 22, 2024 · 0 comments
Closed

[Bug]: New DeprecationWarning with aiohttp 3.9.4 #835

musicinmybrain opened this issue Apr 22, 2024 · 0 comments
Labels
kind/bug Indicates an issue

Comments

@musicinmybrain
Copy link
Contributor

Actual Behavior

With aiohttp 3.9.4 or 3.9.5 and pytest -v -k 'TestPetPhotoView':

========================================================================================== short test summary info ==========================================================================================
FAILED tests/integration/contrib/aiohttp/test_aiohttp_project.py::TestPetPhotoView::test_post_valid - DeprecationWarning: In v4, passing bytes will no longer create a file field. Please explicitly use the filename parameter or pass a BytesIO object.
=============================================================================== 1 failed, 5 passed, 1435 deselected in 5.14s ================================================================================

Expected Behavior

With aiohttp 3.9.3:

==================================================================================== 6 passed, 1435 deselected in 4.86s =====================================================================================

Steps to Reproduce

python3 -m venv _e
. _e/bin/activate
pip install -e .[django,falcon,fastapi,flask,requests,aiohttp,starlette]
pip install django djangorestframework falcon flask pytest pytest-cov python-multipart responses starlette strict-rfc3339 webob httpx deptry aiohttp pytest-aiohttp fastapi
python -m pytest -v -k 'TestPetPhotoView'

OpenAPI Core Version

0.19.1

OpenAPI Core Integration

aiohttp

Affected Area(s)

No response

References

aio-libs/aiohttp@cebe526

Anything else we need to know?

No response

Would you like to implement a fix?

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Indicates an issue
Projects
None yet
Development

No branches or pull requests

2 participants