oracle/oci-python-sdk

Conflict in argument option --config-file with pytest 7.4.0

frenzymadness opened this issue · 3 comments

You have --config-file option in your conftest.py:

parser.addoption("--config-file", action="store", help="location of the config file",

and pytest 7.4.0 now has it as well: pytest-dev/pytest@4f3f36c

which results in:

argparse.ArgumentError: argument --config-file: conflicting option string: --config-file

thanks for reporting the issue, we will work on updating the conftest.py

In Fedora Linux, I've solved the problem by simply renaming the option from --config-file to --config-file-path and it works fine for us as a workaround, see: https://src.fedoraproject.org/rpms/python-oci/blob/rawhide/f/python-oci.spec#_51