make python lammps_open() unit test compatible with mpi4py version 4

This commit is contained in:
Axel Kohlmeyer
2025-06-21 11:57:04 -04:00
parent 3eae4066f3
commit 3a3ba77ced

View File

@ -7,8 +7,8 @@ has_mpi4py=False
try:
from mpi4py import __version__ as mpi4py_version
# tested to work with mpi4py versions 2 and 3
has_mpi4py = mpi4py_version.split('.')[0] in ['2','3']
# tested to work with mpi4py versions 2, 3, and 4
has_mpi4py = mpi4py_version.split('.')[0] in ['2','3','4']
except:
pass