import unittest
+def tearDownModule():
+ asyncio.set_event_loop_policy(None)
+
+
class FutureTests(unittest.IsolatedAsyncioTestCase):
async def test_recursive_repr_for_pending_tasks(self):
# The call crashes if the guard for recursive call
import asyncio
+def tearDownModule():
+ # not needed for the test file but added for uniformness with all other
+ # asyncio test files for the sake of unified cleanup
+ asyncio.set_event_loop_policy(None)
+
+
class ProtocolsAbsTests(unittest.TestCase):
def test_base_protocol(self):
from test.test_asyncio import utils as test_utils
+def tearDownModule():
+ asyncio.set_event_loop_policy(None)
+
+
class TestPolicy(asyncio.AbstractEventLoopPolicy):
def __init__(self, loop_factory):
from test.support import socket_helper
+def tearDownModule():
+ asyncio.set_event_loop_policy(None)
+
+
class MyProto(asyncio.Protocol):
connected = None
done = None
from asyncio import transports
+def tearDownModule():
+ # not needed for the test file but added for uniformness with all other
+ # asyncio test files for the sake of unified cleanup
+ asyncio.set_event_loop_policy(None)
+
+
class TransportTests(unittest.TestCase):
def test_ctor_extra_is_none(self):
from test.test_asyncio import utils as test_utils
+def tearDownModule():
+ asyncio.set_event_loop_policy(None)
+
+
MOCK_ANY = mock.ANY
return 32768 - signum
-def tearDownModule():
- asyncio.set_event_loop_policy(None)
-
-
def close_pipe_transport(transport):
# Don't call transport.close() because the event loop and the selector
# are mocked
--- /dev/null
+Prevent default asyncio event loop policy modification warning after
+``test_asyncio`` execution.