From: Yury Selivanov Date: Thu, 17 Dec 2015 00:40:03 +0000 (-0500) Subject: asyncio/tests: Fix deprecation warning X-Git-Tag: v3.4.5rc1~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa78adc589d85eb6b87d2083ae9cd3797fb7a3d2;p=thirdparty%2FPython%2Fcpython.git asyncio/tests: Fix deprecation warning --- diff --git a/Lib/test/test_asyncio/test_streams.py b/Lib/test/test_asyncio/test_streams.py index b716a504de28..0a9762d1fda7 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)