Get the debug mode (:class:`bool`) of the event loop, ``False`` by default.
+ .. versionadded:: 3.4.2
+
.. method:: BaseEventLoop.set_debug(enabled: bool)
Set the debug mode of the event loop.
+ .. versionadded:: 3.4.2
+
.. seealso::
The :ref:`Develop with asyncio <asyncio-dev>` section.
self.assertRaises(RuntimeError, self.loop.add_writer, fd, callback)
def test_close_no_selector(self):
- ssock = self.loop._ssock
- csock = self.loop._csock
- remove_reader = self.loop.remove_reader = mock.Mock()
-
+ self.loop.remove_reader = mock.Mock()
self.loop._selector.close()
self.loop._selector = None
self.loop.close()