Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-38291: Fix a deprecation warning in typing tests#27312

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
gvanrossum merged 1 commit intopython:mainfromsrittau:fix-typing-warnings
Jul 23, 2021

Conversation

srittau
Copy link
Contributor

@srittausrittau commentedJul 23, 2021
edited by bedevere-bot
Loading

The test was accessing typing.{io,re}.all, which triggered the
warning. This check isn't necessary anymore, since the objects from
typing.{io,re}.all are in typing.all as well, since Python 3.10.

A NEWS should not be required, since this affects the tests only.

Cc@serhiy-storchaka

https://bugs.python.org/issue38291

The test was accessing typing.{io,re}.__all__, which triggered thewarning. This check isn't necessary anymore, since the objects fromtyping.{io,re}.__all__ are in typing.__all__ as well, since Python 3.10.
@srittau
Copy link
ContributorAuthor

Aside: I could not reproduce the warning when running the tests locally.

@bedevere-bot
Copy link

@gvanrossum: Please replace# withGH- in the commit message next time. Thanks!

@srittausrittau deleted the fix-typing-warnings branchJuly 23, 2021 18:55
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@JelleZijlstraJelleZijlstraJelleZijlstra approved these changes

@gvanrossumgvanrossumgvanrossum approved these changes

Assignees
No one assigned
Labels
skip newstestsTests in the Lib/test dir
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@srittau@bedevere-bot@JelleZijlstra@gvanrossum@the-knights-who-say-ni

[8]ページ先頭

©2009-2025 Movatter.jp