summaryrefslogtreecommitdiff
path: root/Lib/test/test_asyncio/test_selector_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-18 03:25:23 +0200
committerVictor Stinner <victor.stinner@gmail.com>2014-06-18 03:25:23 +0200
commit64d750b36bbc60c354b9d486ae578c729a74afd9 (patch)
tree463b71740c06c97898c75f7415c7364418f6f378 /Lib/test/test_asyncio/test_selector_events.py
parentc73701de7292b7de0fee5b7f82a610d7515c18a4 (diff)
downloadcpython-git-64d750b36bbc60c354b9d486ae578c729a74afd9.tar.gz
asyncio: Fix pyflakes errors
- Add a missing import - Remove an unused import - Remove unused variables
Diffstat (limited to 'Lib/test/test_asyncio/test_selector_events.py')
-rw-r--r--Lib/test/test_asyncio/test_selector_events.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_asyncio/test_selector_events.py b/Lib/test/test_asyncio/test_selector_events.py
index b1148d2e36..7c84f03f9d 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()