Goddard-Fortran-Ecosystem / pFUnit

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

imp is deprecated #469

Closed sanguinariojoe closed 4 weeks ago

sanguinariojoe commented 4 weeks ago

Here you are using imp, which is not anymore a module on Python 3.12+

Also that logic is quite convoluted. I would rather do

try:
    import argparse
except ImportError:
    print('GenerateAssertOnArrays.py::Error. pFUnit requires argparse module provided by python version >= 2.7.')
    print('Quitting!'); quit()
tclune commented 4 weeks ago

OK. Will be happy to merge a PR if you can do that. Might be some time before I get to it otherwise. Lots of travel in June, so am only able to spend limited time on my sideline open source projects.

Cheers.

sanguinariojoe commented 4 weeks ago

Something really weird and odd is happening... The code I was pointing was coming from OpenFAST, but apparently they are using a REALLY OLD version of pFUnit.

On the current version there is nothing like this anymore. Sorry for bothering!