Fix deprecation warnings and unittest2 usage in unit tests.
Review Request #12494 — Created Aug. 2, 2022 and submitted — Latest diff uploaded
We have a number of unit tests that emit warnings, some of which are
errors in Python 3.11. These largely concern
inspect.getargspec(), and some bad escaping in test strings.
This updates all of our
assertRaisesRegex(), adds a decorator to skip tests if
inspect.getargspec()is not available, and fixes the string escaping.
This uncovered some bad comparisons that led to
used on Python 2.7. Those have been updated to ensure we do properly
install and use that module.
Unit tests pass on Python 2.7 through 3.10.