diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-12-11 16:33:08 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-12-11 16:33:08 (GMT) |
commit | 7888e6702776c0e619fbf10857534fc18b0d1a1a (patch) | |
tree | 24908690841f174c3c3f1a7e5e4a9aabbe13b54e /Lib/test/test_asyncio | |
parent | 5cf791b0357f7def78dd8190b3544ac4d44d28f9 (diff) | |
parent | dddc781998da741511178c7cb4e303e3db5aac45 (diff) | |
download | cpython-7888e6702776c0e619fbf10857534fc18b0d1a1a.zip cpython-7888e6702776c0e619fbf10857534fc18b0d1a1a.tar.gz cpython-7888e6702776c0e619fbf10857534fc18b0d1a1a.tar.bz2 |
Merge 3.4
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r-- | Lib/test/test_asyncio/test_streams.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_streams.py b/Lib/test/test_asyncio/test_streams.py index 6f657ad..b716a50 100644 --- a/Lib/test/test_asyncio/test_streams.py +++ b/Lib/test/test_asyncio/test_streams.py @@ -351,8 +351,8 @@ class StreamReaderTests(test_utils.TestCase): self.assertEqual(b'', data) self.assertEqual(self.DATA, stream._buffer) - data = self.loop.run_until_complete(stream.readexactly(-1)) - self.assertEqual(b'', data) + with self.assertRaisesRegexp(ValueError, 'less than zero'): + self.loop.run_until_complete(stream.readexactly(-1)) self.assertEqual(self.DATA, stream._buffer) def test_readexactly(self): |