Goddard-Fortran-Ecosystem / pFUnit

Parallel Fortran Unit Testing Framework
Other
169 stars 45 forks source link

Python 3.12+ SyntaxWarning #467

Open d7919 opened 1 month ago

d7919 commented 1 month ago

With python 3.12 including invalid escape strings switched from a Deprecation warning to a SyntaxWarning. It seems that this has led to a large number of warning messages during both compilation and parsing, with messages of the form:

bin/funit/pFUnitParser.py:583: SyntaxWarning: invalid escape sequence '\s'

and

pFUnit-v4.8.0/tools/overload_template.py:184: SyntaxWarning: invalid escape sequence '\s'

(e.g. see CI log).

Why the deprecation warnings were not visible but the syntax warnings are, I don't know, but presumably converting these to raw strings or replacing \s with \\s should remove these warnings.