diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-12-19 22:20:44 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-12-19 22:20:44 +0100 |
commit | 7020608553aa29f0a6075482d6b99c0c7f26d9d3 (patch) | |
tree | 9e5ca56e274e46c2474bfa3a3d896685ce16527e /tests | |
parent | 4fa9288ec5981f329c8d96c2965c3cb3a361cd1f (diff) | |
download | trollius-7020608553aa29f0a6075482d6b99c0c7f26d9d3.tar.gz |
Fix pyflakes warnings: remove unused imports and variables
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_selector_events.py | 3 | ||||
-rw-r--r-- | tests/test_selectors.py | 4 | ||||
-rw-r--r-- | tests/test_unix_events.py | 2 |
3 files changed, 2 insertions, 7 deletions
diff --git a/tests/test_selector_events.py b/tests/test_selector_events.py index 8eba56c..ff114f8 100644 --- a/tests/test_selector_events.py +++ b/tests/test_selector_events.py @@ -1,10 +1,7 @@ """Tests for selector_events.py""" import errno -import gc -import pprint import socket -import sys import unittest from unittest import mock try: diff --git a/tests/test_selectors.py b/tests/test_selectors.py index 9392962..d91c78b 100644 --- a/tests/test_selectors.py +++ b/tests/test_selectors.py @@ -160,11 +160,11 @@ class BaseSelectorTests(unittest.TestCase): d2 = object() s = FakeSelector() - key = s.register(fobj, selectors.EVENT_READ, d1) + s.register(fobj, selectors.EVENT_READ, d1) s.unregister = mock.Mock() s.register = mock.Mock() - key2 = s.modify(fobj, selectors.EVENT_READ, d2) + s.modify(fobj, selectors.EVENT_READ, d2) self.assertFalse(s.unregister.called) self.assertFalse(s.register.called) diff --git a/tests/test_unix_events.py b/tests/test_unix_events.py index b6ad018..4b825dc 100644 --- a/tests/test_unix_events.py +++ b/tests/test_unix_events.py @@ -1,11 +1,9 @@ """Tests for unix_events.py.""" import collections -import gc import errno import io import os -import pprint import signal import socket import stat |