From: Xtreak Date: Sat, 11 May 2019 08:45:17 +0000 (+0530) Subject: bpo-36884: Fix DeprecationWarning in test_asyncio StreamReader instantiation (GH... X-Git-Tag: v3.8.0b1~409 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=79972f1fad5247ade34ef98ad987162a9a78401d;p=thirdparty%2FPython%2Fcpython.git bpo-36884: Fix DeprecationWarning in test_asyncio StreamReader instantiation (GH-13243) https://bugs.python.org/issue36884 --- diff --git a/Lib/test/test_asyncio/test_pep492.py b/Lib/test/test_asyncio/test_pep492.py index 95ed79185867..558e268415cd 100644 --- a/Lib/test/test_asyncio/test_pep492.py +++ b/Lib/test/test_asyncio/test_pep492.py @@ -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()