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
--
_______________________________________________
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to