Commit 4cdbc452 authored by Pablo Galindo's avatar Pablo Galindo Committed by GitHub

bpo-37148: Fix asyncio test that check for warning when running the test suite...

bpo-37148: Fix asyncio test that check for warning when running the test suite with huntleaks (GH-13800)
parent 963eb0f4
......@@ -1229,10 +1229,14 @@ os.close(fd)
self.assertEqual(messages, [])
def test_stream_reader_create_warning(self):
with contextlib.suppress(AttributeError):
del asyncio.StreamReader
with self.assertWarns(DeprecationWarning):
asyncio.StreamReader
def test_stream_writer_create_warning(self):
with contextlib.suppress(AttributeError):
del asyncio.StreamWriter
with self.assertWarns(DeprecationWarning):
asyncio.StreamWriter
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment