Bug discovered via google-ads-python, original Issue here.
Environment details
- OS: Ubuntu 18.04 and also my gLinux desktop.
- Python version: 3.7.0
- pip version: 10.0.1
google-auth version: 1.7.2+
Steps to reproduce
Not exactly sure since this is exposed in google-ads-python via requests that require user credentials, however the code in this change appears to be the cause. Specifically closing threads in the __del__ method of AuthMetadataPlugin may be causing problems because there are no guarantees around when it's called, and in our case it seems like it may not be called at all.
Bug discovered via google-ads-python, original Issue here.
Environment details
google-authversion: 1.7.2+Steps to reproduce
Not exactly sure since this is exposed in google-ads-python via requests that require user credentials, however the code in this change appears to be the cause. Specifically closing threads in the
__del__method ofAuthMetadataPluginmay be causing problems because there are no guarantees around when it's called, and in our case it seems like it may not be called at all.