asyncio: Sync with github

This commit is contained in:
Yury Selivanov 2015-12-11 11:32:59 -05:00
parent 5e58600c42
commit dddc781998
2 changed files with 5 additions and 2 deletions

View file

@ -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):