diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-01-21 22:39:16 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-01-21 22:39:16 (GMT) |
commit | 442b0adccda014e81950a38b1a56e8f06131767a (patch) | |
tree | 5b867834dd07819479c54d31a43e6876d9a6d8cd /Lib/test | |
parent | cd0f7f9832e6aa8363f85152810738111b9a181d (diff) | |
download | cpython-442b0adccda014e81950a38b1a56e8f06131767a.zip cpython-442b0adccda014e81950a38b1a56e8f06131767a.tar.gz cpython-442b0adccda014e81950a38b1a56e8f06131767a.tar.bz2 |
asyncio: pyflakes, remove unused import
tests: Remove unused function; inline another function
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_asyncio/test_streams.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Lib/test/test_asyncio/test_streams.py b/Lib/test/test_asyncio/test_streams.py index a18603a..2273049 100644 --- a/Lib/test/test_asyncio/test_streams.py +++ b/Lib/test/test_asyncio/test_streams.py @@ -415,10 +415,6 @@ class StreamReaderTests(test_utils.TestCase): def set_err(): stream.set_exception(ValueError()) - @asyncio.coroutine - def readline(): - yield from stream.readline() - t1 = asyncio.Task(stream.readline(), loop=self.loop) t2 = asyncio.Task(set_err(), loop=self.loop) @@ -429,11 +425,7 @@ class StreamReaderTests(test_utils.TestCase): def test_exception_cancel(self): stream = asyncio.StreamReader(loop=self.loop) - @asyncio.coroutine - def read_a_line(): - yield from stream.readline() - - t = asyncio.Task(read_a_line(), loop=self.loop) + t = asyncio.Task(stream.readline(), loop=self.loop) test_utils.run_briefly(self.loop) t.cancel() test_utils.run_briefly(self.loop) |