diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2022-01-22 11:06:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-22 11:06:27 (GMT) |
commit | 5a5340044ca98cbe6297668d91bccba04b102923 (patch) | |
tree | 03c491c4739e24dc09560596fce48deda09a0f46 /Lib/test/test_asyncio/test_futures2.py | |
parent | 38afeb1a336f0451c0db86df567ef726f49f6438 (diff) | |
download | cpython-5a5340044ca98cbe6297668d91bccba04b102923.zip cpython-5a5340044ca98cbe6297668d91bccba04b102923.tar.gz cpython-5a5340044ca98cbe6297668d91bccba04b102923.tar.bz2 |
bpo-46425: fix direct invocation of `asyncio` tests (#30725)
Diffstat (limited to 'Lib/test/test_asyncio/test_futures2.py')
-rw-r--r-- | Lib/test/test_asyncio/test_futures2.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_futures2.py b/Lib/test/test_asyncio/test_futures2.py index 13dbc70..57d2419 100644 --- a/Lib/test/test_asyncio/test_futures2.py +++ b/Lib/test/test_asyncio/test_futures2.py @@ -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() |