X Tutup
Skip to content

PEP 828: Add tests#8

Merged
ZeroIntensity merged 4 commits intoZeroIntensity:async-yield-fromfrom
johnslavik:hyperawait-secret-conspiracy-tests
Mar 9, 2026
Merged

PEP 828: Add tests#8
ZeroIntensity merged 4 commits intoZeroIntensity:async-yield-fromfrom
johnslavik:hyperawait-secret-conspiracy-tests

Conversation

@johnslavik
Copy link

@johnslavik johnslavik commented Mar 9, 2026

I left tests that are still mysteriously failing commented out.
Some of them probably don't make any sense and it's fine to remove them, but only some; most tests do apply to async yield from.

Return value tests are important because they currently hard crash the interpreter.
Also, I need to confirm whether objects we can pass to async yield from are correctly handled -- I feel that likely no and maybe we can raise better exceptions.

I suggest the following workflow: for every test, try to uncomment and either:

  • add a fix (either the test is wrong or the implementation is wrong)
  • remove test entirely

Other approach would be to remove commented out tests, polish this PR minimally, merge this PR, keep a list of the missing tests elsewhere, and add them gradually.

Feel free to make a BDFL-ish decision on how we move forward from here.

@johnslavik johnslavik marked this pull request as ready for review March 9, 2026 02:15
@ZeroIntensity ZeroIntensity merged commit bb59a0f into ZeroIntensity:async-yield-from Mar 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup