Closed cognifloyd closed 2 months ago
~Dropped the log warn/warning change for now. That can go in a dedicated PR to figure out why the st2client token tests were failing.~
I found the commit I missed cherry-picking, so I re-added the logger.warning
deprecation fixes.
rebased on master
This extracts @nzlosh's DeprecationWarning fixes from #6157.
Fix for DeprecationWarning: the imp module is deprecated in favour of importlib
Fix for DeprecationWarning: This method will be removed in Python 3.12. Use 'parser.read_file()' instead.
Fix semver DeprecationWarning: Function semver.match is deprecated and other semver warnings
Fix semver patch strip function and replace deprecated self.assertItemsEqual with assert.
Fix DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
Fixed more DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
Replace 'warn' with 'warning' method
Skip test_warn_on_bad_config_permissions when run as root user.
Skip test_get_cached_auth_token_invalid_permissions if run as root
Skip test_cache_auth_token_invalid_permissions if run as root