mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
bpo-46425: fix direct invocation of asyncio tests (GH-30725) (#30782)
(cherry picked from commit 5a5340044c)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
90e2998db7
commit
6111d5dee2
6 changed files with 25 additions and 2 deletions
|
|
@ -16,3 +16,7 @@ async def func():
|
|||
# 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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue