Skip to content

Commit 79972f1

Browse files
tirkarthimiss-islington
authored andcommitted
bpo-36884: Fix DeprecationWarning in test_asyncio StreamReader instantiation (GH-13243)
https://bugs.python.org/issue36884
1 parent f6e17dd commit 79972f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_asyncio/test_pep492.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class StreamReaderTests(BaseTest):
9494
def test_readline(self):
9595
DATA = b'line1\nline2\nline3'
9696

97-
stream = asyncio.StreamReader(loop=self.loop)
97+
stream = asyncio.StreamReader(loop=self.loop, _asyncio_internal=True)
9898
stream.feed_data(DATA)
9999
stream.feed_eof()
100100

0 commit comments

Comments
 (0)