Skip to content

Commit 4512848

Browse files
authored
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.
1 parent 83d1430 commit 4512848

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Lib/test/test_typing.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4653,9 +4653,6 @@ def test_all_exported_names(self):
46534653
if k in actual_all or (
46544654
# avoid private names
46554655
not k.startswith('_') and
4656-
# avoid things in the io / re typing submodules
4657-
k not in typing.io.__all__ and
4658-
k not in typing.re.__all__ and
46594656
k not in {'io', 're'} and
46604657
# there's a few types and metaclasses that aren't exported
46614658
not k.endswith(('Meta', '_contra', '_co')) and

0 commit comments

Comments
 (0)