Hi all,
I'm trying to update python-pytest-postgresql (simple bump) and during
the %check phase I find the following error:
+ /usr/bin/pytest --postgresql-exec=/usr/bin/pg_ctl -k 'not docker' --no-cov
(...)
File "/builddir/build/BUILDROOT/python-pytest-postgresql-6.0.0-1.fc41.x86_64/usr/lib/python3.12/site-packages/pytest_postgresql/plugin.py",
line 67, in pytest_addoption
parser.addoption(
File "/usr/lib/python3.12/site-packages/_pytest/config/argparsing.py",
line 104, in addoption
self._anonymous.addoption(*opts, **attrs)
File "/usr/lib/python3.12/site-packages/_pytest/config/argparsing.py",
line 385, in addoption
raise ValueError("option names %s already added" % conflict)
ValueError: option names {'--postgresql-exec'} already added
What I found is that once the postgresql plugin is loaded it conflicts
with the tests of the module.
Any advice on how to solve this issue?
Best regards,
Mikel