Commit aa78adc5 authored by Yury Selivanov's avatar Yury Selivanov

asyncio/tests: Fix deprecation warning

parent ec45226e
...@@ -351,7 +351,7 @@ class StreamReaderTests(test_utils.TestCase): ...@@ -351,7 +351,7 @@ class StreamReaderTests(test_utils.TestCase):
self.assertEqual(b'', data) self.assertEqual(b'', data)
self.assertEqual(self.DATA, stream._buffer) 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.loop.run_until_complete(stream.readexactly(-1))
self.assertEqual(self.DATA, stream._buffer) self.assertEqual(self.DATA, stream._buffer)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment