Skip to content

Conversation

@sirosen
Copy link
Member

@sirosen sirosen commented Nov 29, 2025

This test ensures that we don't have circular imports allowed in the project.
(ported from #2286 )

Contributor checklist
  • Included tests for the changes.
  • A change note is created in changelog.d/ (see changelog.d/README.md for instructions) or the PR text says "no changelog needed".
Maintainer checklist
  • If no changelog is needed, apply the bot:chronographer:skip label.
  • Assign the PR to an existing or new milestone for the target version (following Semantic Versioning).

@sirosen sirosen added this to the 7.5.3 milestone Nov 29, 2025
@sirosen sirosen force-pushed the circular-import-test branch 2 times, most recently from b44f0c2 to 346dc75 Compare November 29, 2025 06:45
This is ported from the version in aiohttp with minimal changes.

Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
@sirosen sirosen force-pushed the circular-import-test branch from 346dc75 to 449123a Compare November 29, 2025 06:54
@webknjaz
Copy link
Member

@sirosen we should probably manually watch the patch coverage until we can enforce it for real, right?

Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
@sirosen
Copy link
Member Author

sirosen commented Nov 29, 2025

@sirosen we should probably manually watch the patch coverage until we can enforce it for real, right?

Yeah, I've been wondering about that. I got sidetracked when trying to put together a coverage plugin config which would work for us. In the meantime, it would be good to avoid these spurious failures.

@webknjaz webknjaz added this pull request to the merge queue Nov 29, 2025

def _allowed_deprecation_warning_filters() -> list[str]:
"""
Yield filters which allow for deprecation warnings based on the current
Copy link
Member

Choose a reason for hiding this comment

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

(this would've actually been more elegant as a generator FWIW)

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, haha, clearly from the doctoring I intended to write it as a generator! It's fine, but I might come back and fix it sometime...

Merged via the queue into jazzband:main with commit 21c9b84 Nov 29, 2025
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants