[Python-checkins] cpython (3.4): asyncio/tests: Fix deprecation warning

yury.selivanov python-checkins at python.org
Wed Dec 16 19:40:33 EST 2015


https://hg.python.org/cpython/rev/bc0dcc3d9ebe
changeset:   99589:bc0dcc3d9ebe
branch:      3.4
parent:      99586:33c7980552a6
user:        Yury Selivanov <yselivanov at sprymix.com>
date:        Wed Dec 16 19:40:03 2015 -0500
summary:
  asyncio/tests: Fix deprecation warning

files:
  Lib/test/test_asyncio/test_streams.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_asyncio/test_streams.py b/Lib/test/test_asyncio/test_streams.py
--- a/Lib/test/test_asyncio/test_streams.py
+++ b/Lib/test/test_asyncio/test_streams.py
@@ -351,7 +351,7 @@
         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)
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list