Goddard-Fortran-Ecosystem / pFUnit

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

Restore Python2 compatibility in pFUnitParser.py #393

Closed mathomp4 closed 1 year ago

mathomp4 commented 1 year ago

pFUnitParser.py was inadvertently make Python3 only with the use of the pathlib module. While we should all move to Python 3 (and pFUnit 5 might make that a requirement), for now, we return Python2 compatibility by using os.path mechanisms.

Also, we make the new matching test case-insensitive. Note as this is done with .lower() this is not Unicode safe, but Fortran doesn't really support Unicode in module names, so we are okay.