mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
asyncio: Sync with github
This commit is contained in:
parent
5e58600c42
commit
dddc781998
2 changed files with 5 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue