Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previous commit renamed `assertRegexpMatches` to `assertRegex` as the former has been removed in Python 3.12. However, at the time of writing, not all CI build agents have been upgraded to Python >= 3.2. At the same time, some agents have Python 3.12 and cannot be easily downgraded (e.g., RISC-V). This commit provides a compatibility with Python < 3.2 by implementing `assertRegex` by means of `assertRegexpMatches` if `assertRegex` is not available. This way, JitBuilder API gen tests should pass everywhere. Once all CI nodes are upgraded, this commit can be reverted.
- Loading branch information