Python binding tests fail to run
===> Testing for py39-petsc4py-3.18.2
===> py39-petsc4py-3.18.2 depends on package: py39-pytest>=7,1 - found
===> py39-petsc4py-3.18.2 depends on file: /usr/local/bin/python3.9 - found
cd /usr/ports/math/py-petsc4py/work-py39/petsc4py-3.18.2 && /usr/bin/env PETSC_DIR=/usr/local XDG_DATA_HOME=/usr/ports/math/py-petsc4py/work-py39 XDG_CONFIG_HOME=/usr/ports/math/py-petsc4py/work-py39 XDG_CACHE_HOME=/usr/ports/math/py-petsc4py/work-py39/.cache HOME=/usr/ports/math/py-petsc4py/work-py39 PATH=/usr/local/libexec/ccache:/usr/ports/math/py-petsc4py/work-py39/.bin:/home/yuri/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin PKG_CONFIG_LIBDIR=/usr/ports/math/py-petsc4py/work-py39/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES LDSHARED="cc -shared" PYTHONDONTWRITEBYTECODE= PYTHONOPTIMIZE= PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " MANPREFIX="/usr/local" CCACHE_DIR="/tmp/.ccache" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" PYTHONPATH=/usr/ports/math/py-petsc4py/work-py39/stage/usr/local/lib/python3.9/site-packages /usr/local/bin/python3.9 -m pytest -k '' -rs -v -o addopts=
==================================================================================== test session starts =====================================================================================
platform freebsd13 -- Python 3.9.15, pytest-7.2.0, pluggy-1.0.0 -- /usr/local/bin/python3.9
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/usr/ports/math/py-petsc4py/work-py39/petsc4py-3.18.2/.hypothesis/examples')
Using --randomly-seed=4136919344
rootdir: /usr/ports/math/py-petsc4py/work-py39/petsc4py-3.18.2
plugins: forked-1.4.0, hypothesis-6.56.2, cov-2.9.0, randomly-3.12.0, xdist-2.5.0, timeout-2.1.0, rerunfailures-10.1, flaky-3.7.0, freezegun-0.4.2, env-0.6.2, mock-1.10.4
collected 6155 items / 2 errors
=========================================================================================== ERRORS ===========================================================================================
_______________________________________________________________________ ERROR collecting demo/kspsolve/test_mat_cg.py ________________________________________________________________________
demo/kspsolve/test_mat_cg.py:14: in <module>
execfile('petsc-mat.py')
demo/kspsolve/test_mat_cg.py:5: in execfile
fh = open(file, "r")
E FileNotFoundError: [Errno 2] No such file or directory: 'petsc-mat.py'
_______________________________________________________________________ ERROR collecting demo/kspsolve/test_mat_ksp.py _______________________________________________________________________
demo/kspsolve/test_mat_ksp.py:14: in <module>
execfile('petsc-mat.py')
demo/kspsolve/test_mat_ksp.py:5: in execfile
fh = open(file, "r")
E FileNotFoundError: [Errno 2] No such file or directory: 'petsc-mat.py'
====================================================================================== warnings summary ======================================================================================
../../../../../local/lib/python3.9/site-packages/pytest_freezegun.py:17: 12310 warnings
/usr/local/lib/python3.9/site-packages/pytest_freezegun.py:17: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(pytest.__version__) < LooseVersion('3.6.0'):
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================= 12310 warnings, 2 errors in 10.04s =============================================================================
WARNING! There are options you set that were not used!
WARNING! could be spelling mistake, etc!
There are 4 unused database options. They are:
Option left: name:-k (no value)
Option left: name:-o value: addopts=
Option left: name:-rs (no value)
Option left: name:-v (no value)
*** Error code 2
Version: petsc4py-3.18.2 Python: 3.9 FreeBSD 13.1