Skip to content

Commit 9f42906

Browse files
authored
Merge pull request #836 from musicinmybrain/aiohttp-3.9.4
Fix a DeprecationWarning from aiohttp in TestPetPhotoView
2 parents 99af2d3 + 72c9dca commit 9f42906

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integration/contrib/aiohttp/test_aiohttp_project.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
import sys
33
from base64 import b64encode
4+
from io import BytesIO
45

56
import pytest
67

@@ -63,7 +64,7 @@ async def test_post_valid(self, client, data_gif):
6364
"Host": "petstore.swagger.io",
6465
}
6566
data = {
66-
"file": data_gif,
67+
"file": BytesIO(data_gif),
6768
}
6869

6970
cookies = {"user": "1"}

0 commit comments

Comments
 (0)