Skip to content

Comments

[semantic-syntax-tests] Add test fixtures for AwaitOutsideAsync#17785

Merged
ntBre merged 1 commit intoastral-sh:mainfrom
maxmynter:semantic-syntax-v3
May 5, 2025
Merged

[semantic-syntax-tests] Add test fixtures for AwaitOutsideAsync#17785
ntBre merged 1 commit intoastral-sh:mainfrom
maxmynter:semantic-syntax-v3

Conversation

@maxmynter
Copy link
Contributor

Re: #17526

Summary

Add test fixtures for AwaitOutsideAsync and AsyncComprehensionOutsideAsyncFunction errors.

Test Plan

This is a test.

@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@maxmynter maxmynter changed the title (tests) Add test fixtures for AwaitOutsideAsync [semantic-syntax-tests] Add test fixtures for AwaitOutsideAsync May 2, 2025
@MichaReiser MichaReiser requested a review from ntBre May 2, 2025 06:11
@ntBre ntBre added the testing Related to testing Ruff itself label May 5, 2025
Copy link
Contributor

@ntBre ntBre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

This doesn't actually cover AsyncComprehensionOutsideAsyncFunction, which got renamed to AsyncComprehensionInSyncComprehension in #17460 because the old name was quite confusing. It corresponds very specifically to the use of an async comprehension inside of a sync comprehension (as the new name indicates) on a specific version of Python before this was allowed. I also added tests in that PR, though, so I will go ahead and mark it covered.

@ntBre ntBre merged commit 178c882 into astral-sh:main May 5, 2025
34 checks passed
AlexWaygood pushed a commit that referenced this pull request May 5, 2025
…ion` (#17785)

<!--
Thank you for contributing to Ruff! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->
Re: #17526 
## Summary
Add test fixtures for `AwaitOutsideAsync` and
`AsyncComprehensionOutsideAsyncFunction` errors.

<!-- What's the purpose of the change? What does it do, and why? -->

## Test Plan
This is a test. 

<!-- How was it tested? -->
Glyphack pushed a commit to Glyphack/ruff that referenced this pull request May 6, 2025
…ion` (astral-sh#17785)

<!--
Thank you for contributing to Ruff! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->
Re: astral-sh#17526 
## Summary
Add test fixtures for `AwaitOutsideAsync` and
`AsyncComprehensionOutsideAsyncFunction` errors.

<!-- What's the purpose of the change? What does it do, and why? -->

## Test Plan
This is a test. 

<!-- How was it tested? -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Related to testing Ruff itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants