summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-12-17 00:40:03 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-12-17 00:40:03 (GMT)
commitaa78adc589d85eb6b87d2083ae9cd3797fb7a3d2 (patch)
treef7a942814826973add6b343e4144005fe13a5dfd
parentec45226eebbc7aacfe32aad3dd2087c8fa9e178b (diff)
downloadcpython-aa78adc589d85eb6b87d2083ae9cd3797fb7a3d2.zip
cpython-aa78adc589d85eb6b87d2083ae9cd3797fb7a3d2.tar.gz
cpython-aa78adc589d85eb6b87d2083ae9cd3797fb7a3d2.tar.bz2
asyncio/tests: Fix deprecation warning
-rw-r--r--Lib/test/test_asyncio/test_streams.py2
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
index b716a50..0a9762d 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)