diff options
author | Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> | 2021-06-22 02:17:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 11:17:55 -0700 |
commit | c5d700f0e2e2921c6b54c72ffb0fca3c3d1ef06b (patch) | |
tree | 7fc22fb6098c31ba32228040d12f26c47937ba7d /Lib/test/test_typing.py | |
parent | 06cda808f149fae9b4c688f752b6eccd0d455ba4 (diff) | |
download | cpython-git-c5d700f0e2e2921c6b54c72ffb0fca3c3d1ef06b.tar.gz |
Reset DeprecationWarning filters in test_typing io and re (#26811)
Diffstat (limited to 'Lib/test/test_typing.py')
-rw-r--r-- | Lib/test/test_typing.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 06df3e2326..eff0f5bfc4 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -3998,6 +3998,7 @@ class IOTests(BaseTestCase): def test_io_submodule(self): with warnings.catch_warnings(record=True) as w: + warnings.filterwarnings("default", category=DeprecationWarning) from typing.io import IO, TextIO, BinaryIO, __all__, __name__ self.assertIs(IO, typing.IO) self.assertIs(TextIO, typing.TextIO) @@ -4052,6 +4053,7 @@ class RETests(BaseTestCase): def test_re_submodule(self): with warnings.catch_warnings(record=True) as w: + warnings.filterwarnings("default", category=DeprecationWarning) from typing.re import Match, Pattern, __all__, __name__ self.assertIs(Match, typing.Match) self.assertIs(Pattern, typing.Pattern) |