Enabling Smyrna on macOS fails the test `test_tools` because running `smyrna -?`
outputs some XType warnings prior to the usage text. Suppressing these with
`remove_xtype_warnings` still does not fix the issue because the seen text now
begins “\n\nusage:…”. This change makes `remove_xtype_warnings` act more
precisely and strip the end of line character that is part of the warning as
well.
Gitlab: related to #1836, #1854
if platform.system() != "Darwin":
return s
- return re.sub(r"^.* XType: .*\.$", "", s, flags=re.MULTILINE)
+ return re.sub(r"^.* XType: .*\.$\n", "", s, flags=re.MULTILINE)
def run_c(src: Path, args: List[str] = None, input: str = "",
cflags: List[str] = None, link: List[str] = None