diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-12-17 00:40:03 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-12-17 00:40:03 (GMT) |
commit | aa78adc589d85eb6b87d2083ae9cd3797fb7a3d2 (patch) | |
tree | f7a942814826973add6b343e4144005fe13a5dfd | |
parent | ec45226eebbc7aacfe32aad3dd2087c8fa9e178b (diff) | |
download | cpython-aa78adc589d85eb6b87d2083ae9cd3797fb7a3d2.zip cpython-aa78adc589d85eb6b87d2083ae9cd3797fb7a3d2.tar.gz cpython-aa78adc589d85eb6b87d2083ae9cd3797fb7a3d2.tar.bz2 |
asyncio/tests: Fix deprecation warning
-rw-r--r-- | 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 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) |