bpo-46425: fix direct invocation of asyncio tests (GH-30725)

(cherry picked from commit 5a5340044c)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
Miss Islington (bot) 2022-01-22 03:54:07 -08:00 committed by GitHub
parent 3e7d06a1fa
commit 3c4a3745b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 25 additions and 2 deletions

View file

@ -1,5 +1,4 @@
import socket
import time
import asyncio
import sys
import unittest
@ -508,3 +507,7 @@ class SelectEventLoopTests(BaseSockTestsMixin,
def create_event_loop(self):
return asyncio.SelectorEventLoop(selectors.SelectSelector())
if __name__ == '__main__':
unittest.main()