]> granicus.if.org Git - python/commitdiff
bpo-36884: Fix DeprecationWarning in test_asyncio StreamReader instantiation (GH...
authorXtreak <tir.karthi@gmail.com>
Sat, 11 May 2019 08:45:17 +0000 (14:15 +0530)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 11 May 2019 08:45:16 +0000 (01:45 -0700)
https://bugs.python.org/issue36884

Lib/test/test_asyncio/test_pep492.py

index 95ed7918586790519de9029f2b4c788abf4ef7de..558e268415cd004124121fa95645c30e8506ec38 100644 (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()