diff options
Diffstat (limited to 'Lib/test/test_asyncio/test_streams.py')
-rw-r--r-- | Lib/test/test_asyncio/test_streams.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_streams.py b/Lib/test/test_asyncio/test_streams.py index df3d7e7..c1b9dc9 100644 --- a/Lib/test/test_asyncio/test_streams.py +++ b/Lib/test/test_asyncio/test_streams.py @@ -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 |