summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-16 17:36:47 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-01-16 17:36:47 +0100
commit4d108a6bcf3e529b61141026029034cc61a9f1de (patch)
treed8a24930f7010a77121261f42368bf0b0be474d6 /tests
parent3b95677c325252c3e16cfd8f4eeb3303209e785e (diff)
downloadtrollius-4d108a6bcf3e529b61141026029034cc61a9f1de.tar.gz
tests: Remove unused function; inline another function
Diffstat (limited to 'tests')
-rw-r--r--tests/test_streams.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/test_streams.py b/tests/test_streams.py
index a18603a..2273049 100644
--- a/tests/test_streams.py
+++ b/tests/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)