Skip to content

Followup-to: Fix tests for Python 3.14a7+ (#13514) #13527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

jayaddison
Copy link
Contributor

@jayaddison jayaddison commented May 6, 2025

Purpose

Fixup some autodoc-related tests in a way that handles both before-and-after Py3.14(a7).

References

@jayaddison

This comment was marked as off-topic.

@jayaddison

This comment was marked as off-topic.

@jayaddison

This comment was marked as off-topic.

@jayaddison
Copy link
Contributor Author

@AA-Turner this is ready for review; I've left one question/thought about maybe using an f-string in one of the fixups, but could also argue that consistency makes the changeset simpler.

@AA-Turner AA-Turner merged commit 0227606 into sphinx-doc:master May 12, 2025
22 of 24 checks passed
@jayaddison
Copy link
Contributor Author

Thanks @AA-Turner!

@@ -1421,6 +1425,10 @@ def test_autodoc_type_aliases(app: SphinxTestApp) -> None:
'io.StringIO': 'my.module.StringIO',
}
actual = do_autodoc(app, 'module', 'target.autodoc_type_aliases', options)
if sys.version_info >= (3, 14, 0, 'alpha', 7):
attr2_typeinfo = ()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@AA-Turner did you just uncover a bug in mypy? There are two declarations of attr2_typeinfo, and only one was adjusted by 059ee9c - yet the mypy lint job succeeded.

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.

CI Broken for Python 3.14
2 participants