Fix compatibility with Python 2.7.
Review Request #12127 — Created March 8, 2022 and submitted
Because enterprises tend to move very slowly, we're keeping Python 2.7
compatibility for RBTools 3.0. Two issues had snuck in that were
- We had renamed uses of
assertRaisesRegexpto use the new
assertRaisesRegexname. Unfortunately, this new name is only Python
3.1+. I've changed it back, and made two uses of it instead call the
assertRaisesMessagehelper, so now there's only
one place that hits it.
tqdmlibrary depends on
while tqdm is maintaining Python 2.7 compatibility, the newer
versions of its dependency are not. I've added a pin for the last
setup.py developunder Python 2.7, and then ran all unit tests.