File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
openapi_core/contrib/aiohttp
tests/integration/contrib/aiohttp Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,10 @@ def data(self) -> str:
17
17
if self .response .body is None :
18
18
return ""
19
19
if isinstance (self .response .body , bytes ):
20
- return self .response .body .decode ("utf-8" )
20
+ try :
21
+ return self .response .body .decode ("utf-8" )
22
+ except UnicodeDecodeError :
23
+ return self .response .body
21
24
assert isinstance (self .response .body , str )
22
25
return self .response .body
23
26
Original file line number Diff line number Diff line change @@ -38,10 +38,6 @@ def api_key_encoded(self):
38
38
39
39
40
40
class TestPetPhotoView (BaseTestPetstore ):
41
- @pytest .mark .xfail (
42
- reason = "response binary format not supported" ,
43
- strict = True ,
44
- )
45
41
async def test_get_valid (self , client , data_gif ):
46
42
headers = {
47
43
"Authorization" : "Basic testuser" ,
You can’t perform that action at this time.
0 commit comments