slapos/tests: Refine the unittest API calling for Python 3.12
Python 3.12 completely drops assertRaisesRegexp, readfp. Adjust the code and maintain Python 2 compatibility.
Python 3.12 completely drops assertRaisesRegexp, readfp. Adjust the code and maintain Python 2 compatibility.
Step 1. Fetch and check out the branch for this merge request
git fetch "https://lab.nexedi.com/Daetalus/slapos.core.git" "3.12" git checkout -b "Daetalus/slapos.core-3.12" FETCH_HEAD
Step 2. Review the changes locally
Step 3. Merge the branch and fix any conflicts that come up
git fetch origin git checkout "origin/master" git merge --no-ff "Daetalus/slapos.core-3.12"
Step 4. Push the result of the merge to GitLab
git push origin "master"
Note that pushing to GitLab requires write access to this repository.
Tip: You can also checkout merge requests locally by following these guidelines.