PATH:
opt
/
bitninja-python-dojo
/
embedded
/
lib
/
python3.9
/
test
/
test_asyncio
# IsolatedAsyncioTestCase based tests import asyncio import unittest class FutureTests(unittest.IsolatedAsyncioTestCase): async def test_recursive_repr_for_pending_tasks(self): # The call crashes if the guard for recursive call # in base_futures:_future_repr_info is absent # See Also: https://bugs.python.org/issue42183 async def func(): return asyncio.all_tasks() # The repr() call should not raise RecursiveError at first. # 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)))
[-] test_sslproto.py
[edit]
[-] test_futures2.py
[edit]
[-] test_streams.py
[edit]
[-] test_threads.py
[edit]
[-] test_windows_utils.py
[edit]
[-] test_buffered_proto.py
[edit]
[-] test_sock_lowlevel.py
[edit]
[-] test_tasks.py
[edit]
[-] test_unix_events.py
[edit]
[-] test_server.py
[edit]
[-] test_pep492.py
[edit]
[+]
..
[-] test_futures.py
[edit]
[-] test_context.py
[edit]
[-] test_sendfile.py
[edit]
[-] test_transports.py
[edit]
[-] __main__.py
[edit]
[-] echo2.py
[edit]
[-] test_locks.py
[edit]
[-] test_queues.py
[edit]
[+]
__pycache__
[-] test_base_events.py
[edit]
[-] utils.py
[edit]
[-] echo3.py
[edit]
[-] test_events.py
[edit]
[-] test_proactor_events.py
[edit]
[-] test_selector_events.py
[edit]
[-] functional.py
[edit]
[-] __init__.py
[edit]
[-] test_windows_events.py
[edit]
[-] test_asyncio_waitfor.py
[edit]
[-] test_runners.py
[edit]
[-] echo.py
[edit]
[-] test_protocols.py
[edit]
[-] test_subprocess.py
[edit]