slapos/tests: Refine the unittest API calling for Python 3.12
Python 3.12 completely drops assertRaisesRegexp, readfp. Adjust the code and maintain the Python 2 compatibility.
Showing
Please register or sign in to comment
Python 3.12 completely drops assertRaisesRegexp, readfp. Adjust the code and maintain the Python 2 compatibility.