-
Boxiang Sun authored
Python 3.12 completely drops assertRaisesRegexp, which we should check the API is exist before evaluating the it. Also this code keep the Python 2 compatibility.
a00822c0
Python 3.12 completely drops assertRaisesRegexp, which we should check the API is exist before evaluating the it. Also this code keep the Python 2 compatibility.