FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-38291: Fix a deprecation warning in typing tests by srittau · Pull Request #27312 · python/cpython · GitHub

/ cpython Public

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

Merged
gvanrossum merged 1 commit into
python:mainfrom
srittau:fix-typing-warnings
Jul 23, 2021
Merged

bpo-38291: Fix a deprecation warning in typing tests#27312
gvanrossum merged 1 commit into
python:mainfrom
srittau:fix-typing-warnings

Conversation

srittau commented Jul 23, 2021
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

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 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.
srittau requested a review from gvanrossum as a code owner July 23, 2021 18:05
bedevere-bot added the tests Tests in the Lib/test dir label Jul 23, 2021

srittau commented Jul 23, 2021

Copy link
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown

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

srittau deleted the fix-typing-warnings branch July 23, 2021 18:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL