Skip to content

Commit

Permalink
fix: fixes issue where Python37DeprecationWarning cannot be filtered (#…
Browse files Browse the repository at this point in the history
…1428)

* fix: fixes issue where Python37DeprecationWarning cannot be filtered

* chore: refresh sys test cred

---------

Co-authored-by: arithmetic1728 <58957152+arithmetic1728@users.noreply.github.com>
Co-authored-by: Sijun Liu <liusijun1985@gmail.com>
  • Loading branch information
3 people committed Dec 4, 2023
1 parent f0b368e commit f22f767
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions google/auth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ class Python37DeprecationWarning(DeprecationWarning): # pragma: NO COVER
"for Python 3.7. More details about Python 3.7 support "
"can be found at https://cloud.google.com/python/docs/python37-sunset/"
)

# Configure the Python37DeprecationWarning warning so that it is only emitted once.
warnings.simplefilter("once", Python37DeprecationWarning)
warnings.warn(message, Python37DeprecationWarning)

# Set default logging handler to avoid "No handler found" warnings.
Expand Down
2 changes: 0 additions & 2 deletions google/oauth2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,4 @@ class Python37DeprecationWarning(DeprecationWarning): # pragma: NO COVER
"for Python 3.7. More details about Python 3.7 support "
"can be found at https://cloud.google.com/python/docs/python37-sunset/"
)
# Configure the Python37DeprecationWarning warning so that it is only emitted once.
warnings.simplefilter("once", Python37DeprecationWarning)
warnings.warn(message, Python37DeprecationWarning)
Binary file modified system_tests/secrets.tar.enc
Binary file not shown.

0 comments on commit f22f767

Please sign in to comment.