[issue32526] Closing async generator while it is running does not raise an exception

2019-10-22 Thread Yury Selivanov
Yury Selivanov added the comment: Was fixed as part of #30773. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue32526] Closing async generator while it is running does not raise an exception

2018-01-14 Thread Joongi Kim
Change by Joongi Kim : -- keywords: +patch pull_requests: +5035 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list m

[issue32526] Closing async generator while it is running does not raise an exception

2018-01-10 Thread Nathaniel Smith
Nathaniel Smith added the comment: It looks like Python's tracking the "running" state of async generators wrong: we should have ag_running set to True when we enter asend/athrow/aclose and False when we exit, but instead it's being toggled back and forth on each *inner* send/throw on the ind

[issue32526] Closing async generator while it is running does not raise an exception

2018-01-10 Thread Joongi Kim
New submission from Joongi Kim : Here is the minimal example code: https://gist.github.com/achimnol/965a6aecf7b1f96207abf11469b68965 Just run this code using "python -m pytest -s test.py" to see what happens. (My setup uses Python 3.6.4 and pytest 3.3.2 on macOS High Sierra 10.13.2) I tried th

[issue32526] Closing async generator while it is running does not raise an exception

2018-01-10 Thread Joongi Kim
Change by Joongi Kim : -- components: asyncio nosy: achimnol, asvetlov, njs, yselivanov priority: normal severity: normal status: open title: Closing async generator while it is running does not raise an exception type: behavior versions: Python 3.6 _