003 File Manager
Current Path:
/usr/local/lib/python3.8/test/test_asyncio
usr
/
local
/
lib
/
python3.8
/
test
/
test_asyncio
/
📁
..
📄
__init__.py
(244 B)
📄
__main__.py
(58 B)
📁
__pycache__
📄
echo.py
(148 B)
📄
echo2.py
(123 B)
📄
echo3.py
(276 B)
📄
functional.py
(7.47 KB)
📄
test_asyncio_waitfor.py
(1.45 KB)
📄
test_base_events.py
(78.14 KB)
📄
test_buffered_proto.py
(2.28 KB)
📄
test_context.py
(1020 B)
📄
test_events.py
(99.68 KB)
📄
test_futures.py
(26.42 KB)
📄
test_futures2.py
(694 B)
📄
test_locks.py
(33.67 KB)
📄
test_pep492.py
(6.04 KB)
📄
test_proactor_events.py
(35.04 KB)
📄
test_protocols.py
(2 KB)
📄
test_queues.py
(21.16 KB)
📄
test_runners.py
(5.06 KB)
📄
test_selector_events.py
(47.17 KB)
📄
test_sendfile.py
(19.67 KB)
📄
test_server.py
(3.93 KB)
📄
test_sock_lowlevel.py
(11.84 KB)
📄
test_sslproto.py
(25.78 KB)
📄
test_streams.py
(36.21 KB)
📄
test_subprocess.py
(25.33 KB)
📄
test_tasks.py
(107.17 KB)
📄
test_transports.py
(3.53 KB)
📄
test_unix_events.py
(66.23 KB)
📄
test_windows_events.py
(8.92 KB)
📄
test_windows_utils.py
(4.07 KB)
📄
utils.py
(16.83 KB)
Editing: test_futures2.py
# 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)))
Upload File
Create Folder