Fix warnings in test_asyncio.test_base_events (GH-17577) (GH-17579)

Co-authored-by: tirkarthi
(cherry picked from commit 1988344a6bff253f017e053f69318ecf03587294)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
1 file changed