bpo-36884: Fix DeprecationWarning in test_asyncio StreamReader instantiation (GH-13243)

https://bugs.python.org/issue36884
This commit is contained in:
Xtreak 2019-05-11 14:15:17 +05:30 committed by Miss Islington (bot)
parent f6e17ddffd
commit 79972f1fad
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class StreamReaderTests(BaseTest):
def test_readline(self):
DATA = b'line1\nline2\nline3'
stream = asyncio.StreamReader(loop=self.loop)
stream = asyncio.StreamReader(loop=self.loop, _asyncio_internal=True)
stream.feed_data(DATA)
stream.feed_eof()