summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-12-11 16:32:59 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-12-11 16:32:59 (GMT)
commitdddc781998da741511178c7cb4e303e3db5aac45 (patch)
tree3953a4a1870e3761a1bd82cc42f8901f942eccc7 /Lib/test
parent5e58600c42137cbf17938c7035ea5d41b3e860f6 (diff)
downloadcpython-dddc781998da741511178c7cb4e303e3db5aac45.zip
cpython-dddc781998da741511178c7cb4e303e3db5aac45.tar.gz
cpython-dddc781998da741511178c7cb4e303e3db5aac45.tar.bz2
asyncio: Sync with github
Diffstat (limited to 'Lib/test')
-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):