Commit e7f49e06 authored by Victor Stinner's avatar Victor Stinner

asyncio: Fix pyflakes errors

- Add a missing import
- Remove an unused import
- Remove unused variables
parent d101584f
......@@ -588,10 +588,14 @@ Debug mode
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.
......
......@@ -108,10 +108,7 @@ class BaseSelectorEventLoopTests(test_utils.TestCase):
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()
......
"""Tests for tasks.py."""
import gc
import os.path
import sys
import types
......
......@@ -9,6 +9,7 @@ import _winapi
import asyncio
from asyncio import _overlapped
from asyncio import test_utils
from asyncio import windows_events
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment