summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-12-11 16:33:08 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-12-11 16:33:08 (GMT)
commit7888e6702776c0e619fbf10857534fc18b0d1a1a (patch)
tree24908690841f174c3c3f1a7e5e4a9aabbe13b54e /Lib/test/test_asyncio
parent5cf791b0357f7def78dd8190b3544ac4d44d28f9 (diff)
parentdddc781998da741511178c7cb4e303e3db5aac45 (diff)
downloadcpython-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.py4
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):