]> granicus.if.org Git - python/commitdiff
asyncio/tests: Fix deprecation warning
authorYury Selivanov <yselivanov@sprymix.com>
Thu, 17 Dec 2015 00:40:03 +0000 (19:40 -0500)
committerYury Selivanov <yselivanov@sprymix.com>
Thu, 17 Dec 2015 00:40:03 +0000 (19:40 -0500)
Lib/test/test_asyncio/test_streams.py

index b716a504de282360f32b7c482ecb31ec62c3ed74..0a9762d1fda73190a8c6f68b881f6eb119d78005 100644 (file)
@@ -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)