mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-36889: Merge asyncio streams (GH-13251)
https://bugs.python.org/issue36889
This commit is contained in:
parent
6f6ff8a565
commit
23b4b697e5
13 changed files with 2065 additions and 393 deletions
|
@ -94,7 +94,9 @@ class StreamReaderTests(BaseTest):
|
|||
def test_readline(self):
|
||||
DATA = b'line1\nline2\nline3'
|
||||
|
||||
stream = asyncio.StreamReader(loop=self.loop, _asyncio_internal=True)
|
||||
stream = asyncio.Stream(mode=asyncio.StreamMode.READ,
|
||||
loop=self.loop,
|
||||
_asyncio_internal=True)
|
||||
stream.feed_data(DATA)
|
||||
stream.feed_eof()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue