Skip to content

Commit c6f67b0

Browse files
authored
[PR #11020/852297c backport][3.12] Cleanup some type ignores in the client request tests (#11026)
1 parent f45de42 commit c6f67b0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_client_request.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,8 @@ async def test_post_data(loop: asyncio.AbstractEventLoop, conn: mock.Mock) -> No
751751
)
752752
resp = await req.send(conn)
753753
assert "/" == req.url.path
754-
assert b"life=42" == req.body._value # type: ignore[union-attr]
754+
assert isinstance(req.body, payload.Payload)
755+
assert b"life=42" == req.body._value
755756
assert "application/x-www-form-urlencoded" == req.headers["CONTENT-TYPE"]
756757
await req.close()
757758
resp.close()
@@ -788,7 +789,8 @@ async def test_get_with_data(loop) -> None:
788789
meth, URL("http://python.org/"), data={"life": "42"}, loop=loop
789790
)
790791
assert "/" == req.url.path
791-
assert b"life=42" == req.body._value # type: ignore[union-attr]
792+
assert isinstance(req.body, payload.Payload)
793+
assert b"life=42" == req.body._value
792794
await req.close()
793795

794796

0 commit comments

Comments
 (0)