summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-18 01:25:23 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-06-18 01:25:23 (GMT)
commit64d750b36bbc60c354b9d486ae578c729a74afd9 (patch)
tree463b71740c06c97898c75f7415c7364418f6f378 /Lib/test
parentc73701de7292b7de0fee5b7f82a610d7515c18a4 (diff)
downloadcpython-64d750b36bbc60c354b9d486ae578c729a74afd9.zip
cpython-64d750b36bbc60c354b9d486ae578c729a74afd9.tar.gz
cpython-64d750b36bbc60c354b9d486ae578c729a74afd9.tar.bz2
asyncio: Fix pyflakes errors
- Add a missing import - Remove an unused import - Remove unused variables
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_asyncio/test_selector_events.py5
-rw-r--r--Lib/test/test_asyncio/test_tasks.py1
-rw-r--r--Lib/test/test_asyncio/test_windows_events.py1
3 files changed, 2 insertions, 5 deletions
diff --git a/Lib/test/test_asyncio/test_selector_events.py b/Lib/test/test_asyncio/test_selector_events.py
index b1148d2..7c84f03 100644
--- a/Lib/test/test_asyncio/test_selector_events.py
+++ b/Lib/test/test_asyncio/test_selector_events.py
@@ -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()
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
index 0ed2f94..e95c7dc 100644
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -1,6 +1,5 @@
"""Tests for tasks.py."""
-import gc
import os.path
import sys
import types
diff --git a/Lib/test/test_asyncio/test_windows_events.py b/Lib/test/test_asyncio/test_windows_events.py
index ca79c43..4ab56e6 100644
--- a/Lib/test/test_asyncio/test_windows_events.py
+++ b/Lib/test/test_asyncio/test_windows_events.py
@@ -9,6 +9,7 @@ import _winapi
import asyncio
from asyncio import _overlapped
+from asyncio import test_utils
from asyncio import windows_events