From: Yury Selivanov Date: Thu, 17 Dec 2015 00:40:03 +0000 (-0500) Subject: asyncio/tests: Fix deprecation warning X-Git-Tag: v3.6.0a1~902^2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa78adc589d85eb6b87d2083ae9cd3797fb7a3d2;p=python asyncio/tests: Fix deprecation warning --- diff --git a/Lib/test/test_asyncio/test_streams.py b/Lib/test/test_asyncio/test_streams.py index b716a504de..0a9762d1fd 100644 --- a/Lib/test/test_asyncio/test_streams.py +++ b/Lib/test/test_asyncio/test_streams.py @@ -351,7 +351,7 @@ class StreamReaderTests(test_utils.TestCase): self.assertEqual(b'', data) self.assertEqual(self.DATA, stream._buffer) - with self.assertRaisesRegexp(ValueError, 'less than zero'): + with self.assertRaisesRegex(ValueError, 'less than zero'): self.loop.run_until_complete(stream.readexactly(-1)) self.assertEqual(self.DATA, stream._buffer)