[Chapel Merge] Fix sub_test error filtering for python 3.12

Branch: refs/heads/main
Revision: 66cf8e86d1f2c872d59127cdb1799b8a5e62625c
Author: jabraham17
Link: Fix sub_test error filtering for python 3.12 by jabraham17 · Pull Request #24664 · chapel-lang/chapel · GitHub
Log Message:
Fix sub_test error filtering for python 3.12 (#24664)

I recently updated to python3.12 and found that I was getting a
SyntaxWarning for the string "'AM_ERR_RESOURCE (Problem with
requested resource)'" when running start_test. The simple fix is to
mark the string as a raw/regex string with r. I applied this fix, and
also applied it to other filter strings which ultimately get passed to
re.search to future-proof them.

Tested locally by running start_test on any test

[Reviewed by @vasslitvinov]

Compare: Comparing 10eed13c5855c64bbeed8573335dd401ac439b7a...46fe037d1b3ecb471297c2c7439e6c2a1bd49213 · chapel-lang/chapel · GitHub

Diff:
M util/test/sub_test.py
https://github.com/chapel-lang/chapel/pull/24664.diff