diff options
Diffstat (limited to 'tests/functional/m/member_checks_py37.py')
-rw-r--r-- | tests/functional/m/member_checks_py37.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/functional/m/member_checks_py37.py b/tests/functional/m/member_checks_py37.py new file mode 100644 index 000000000..8d59b7d80 --- /dev/null +++ b/tests/functional/m/member_checks_py37.py @@ -0,0 +1,19 @@ +# pylint: disable=missing-docstring +import collections +import asyncio + +isinstance([], collections.Iterable) + + +async def gen(): + await asyncio.sleep(0.1) + value = yield 42 + print(value) + await asyncio.sleep(0.2) + + +async def test(): + generator = gen() + + await generator.asend(None) + await generator.send(None) # [no-member] |