diff options
author | Sebastian Rittau <srittau@rittau.biz> | 2021-07-23 18:53:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 18:53:29 (GMT) |
commit | 4512848ab92c8ed6aafb54d6e1908b1074558c43 (patch) | |
tree | f021399e02d82696f70a3d9db9b6d0167861a6e0 /Lib/test/test_typing.py | |
parent | 83d1430ee5b8008631e7f2a75447e740eed065c1 (diff) | |
download | cpython-4512848ab92c8ed6aafb54d6e1908b1074558c43.zip cpython-4512848ab92c8ed6aafb54d6e1908b1074558c43.tar.gz cpython-4512848ab92c8ed6aafb54d6e1908b1074558c43.tar.bz2 |
Fix a deprecation warning in typing tests (#27312)
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.
Diffstat (limited to 'Lib/test/test_typing.py')
-rw-r--r-- | Lib/test/test_typing.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index ebe6c8d..bfa5755 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -4653,9 +4653,6 @@ class AllTests(BaseTestCase): if k in actual_all or ( # avoid private names not k.startswith('_') and - # avoid things in the io / re typing submodules - k not in typing.io.__all__ and - k not in typing.re.__all__ and k not in {'io', 're'} and # there's a few types and metaclasses that aren't exported not k.endswith(('Meta', '_contra', '_co')) and |