cpython: 0d80d46adfdb (original) (raw)

Mercurial > cpython

changeset 96037:0d80d46adfdb

Issue 24017: More tests for 'async for' and 'async with'.

Yury Selivanov yselivanov@sprymix.com
date Wed, 13 May 2015 16:49:35 -0400
parents 94eddf8ec0e5
children ee31277386cb
files Lib/test/test_coroutines.py
diffstat 1 files changed, 35 insertions(+), 0 deletions(-)[+] [-] Lib/test/test_coroutines.py 35

line wrap: on

line diff

--- a/Lib/test/test_coroutines.py +++ b/Lib/test/test_coroutines.py @@ -623,6 +623,27 @@ class CoroutineTest(unittest.TestCase): run_async(foo())

+

+

+

+

+ def test_for_1(self): aiter_calls = 0 @@ -859,6 +880,20 @@ class CoroutineTest(unittest.TestCase): run_async(main()) self.assertEqual(I, 20555255)

+ class CoroAsyncIOCompatTest(unittest.TestCase):