Skip to content

Commit f22f767

Browse files
fix: fixes issue where Python37DeprecationWarning cannot be filtered (#1428)
* fix: fixes issue where Python37DeprecationWarning cannot be filtered * chore: refresh sys test cred --------- Co-authored-by: arithmetic1728 <[email protected]> Co-authored-by: Sijun Liu <[email protected]>
1 parent f0b368e commit f22f767

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

google/auth/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ class Python37DeprecationWarning(DeprecationWarning): # pragma: NO COVER
4949
"for Python 3.7. More details about Python 3.7 support "
5050
"can be found at https://cloud.google.com/python/docs/python37-sunset/"
5151
)
52-
53-
# Configure the Python37DeprecationWarning warning so that it is only emitted once.
54-
warnings.simplefilter("once", Python37DeprecationWarning)
5552
warnings.warn(message, Python37DeprecationWarning)
5653

5754
# Set default logging handler to avoid "No handler found" warnings.

google/oauth2/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,4 @@ class Python37DeprecationWarning(DeprecationWarning): # pragma: NO COVER
3535
"for Python 3.7. More details about Python 3.7 support "
3636
"can be found at https://cloud.google.com/python/docs/python37-sunset/"
3737
)
38-
# Configure the Python37DeprecationWarning warning so that it is only emitted once.
39-
warnings.simplefilter("once", Python37DeprecationWarning)
4038
warnings.warn(message, Python37DeprecationWarning)

system_tests/secrets.tar.enc

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)