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

This commit is contained in:
Nikita Sobolev 2022-01-22 14:06:27 +03:00 committed by GitHub
parent 38afeb1a33
commit 5a5340044c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 25 additions and 2 deletions

View file

@ -16,3 +16,7 @@ class FutureTests(unittest.IsolatedAsyncioTestCase):
# The check for returned string is not very reliable but
# exact comparison for the whole string is even weaker.
self.assertIn('...', repr(await asyncio.wait_for(func(), timeout=10)))
if __name__ == '__main__':
unittest.main()