Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conflicting option string(s): --fixtures #201

Closed
pytestbot opened this issue Oct 14, 2012 · 1 comment
Closed

conflicting option string(s): --fixtures #201

pytestbot opened this issue Oct 14, 2012 · 1 comment
Labels
type: bug problem that needs to be addressed

Comments

@pytestbot
Copy link
Contributor

Originally reported by: Sebastian Rahlf (BitBucket: basti, GitHub: basti)


I've tried to use the new fixtures feature of the upcoming version 2.3 and ran into this problem:

#!pytb
Traceback (most recent call last):
  File "/home/sebrah/.virtualenvs/tmp/bin/py.test", line 8, in <module>
    load_entry_point('pytest==2.3.0.dev23', 'console_scripts', 'py.test')()
  File "/home/sebrah/.virtualenvs/tmp/lib/python2.7/site-packages/_pytest/core.py", line 473, in main
    config = _prepareconfig(args, plugins)
  File "/home/sebrah/.virtualenvs/tmp/lib/python2.7/site-packages/_pytest/core.py", line 463, in _prepareconfig
    pluginmanager=_pluginmanager, args=args)
  File "/home/sebrah/.virtualenvs/tmp/lib/python2.7/site-packages/_pytest/core.py", line 422, in __call__
    return self._docall(methods, kwargs)
  File "/home/sebrah/.virtualenvs/tmp/lib/python2.7/site-packages/_pytest/core.py", line 433, in _docall
    res = mc.execute()
  File "/home/sebrah/.virtualenvs/tmp/lib/python2.7/site-packages/_pytest/core.py", line 351, in execute
    res = method(**kwargs)
  File "/home/sebrah/.virtualenvs/tmp/lib/python2.7/site-packages/_pytest/helpconfig.py", line 25, in pytest_cmdline_parse
    config = __multicall__.execute()
  File "/home/sebrah/.virtualenvs/tmp/lib/python2.7/site-packages/_pytest/core.py", line 351, in execute
    res = method(**kwargs)
  File "/home/sebrah/.virtualenvs/tmp/lib/python2.7/site-packages/_pytest/config.py", line 10, in pytest_cmdline_parse
    config.parse(args)
  File "/home/sebrah/.virtualenvs/tmp/lib/python2.7/site-packages/_pytest/config.py", line 346, in parse
    args = self._parser.parse_setoption(args, self.option)
  File "/home/sebrah/.virtualenvs/tmp/lib/python2.7/site-packages/_pytest/config.py", line 72, in parse_setoption
    parsedoption, args = self.parse(args)
  File "/home/sebrah/.virtualenvs/tmp/lib/python2.7/site-packages/_pytest/config.py", line 67, in parse
    optgroup.add_options(group.options)
  File "/shared/prod/rhel6/python-2.7.1/lib/python2.7/optparse.py", line 1039, in add_options
    self.add_option(option)
  File "/shared/prod/rhel6/python-2.7.1/lib/python2.7/optparse.py", line 1020, in add_option
    self._check_conflict(option)
  File "/shared/prod/rhel6/python-2.7.1/lib/python2.7/optparse.py", line 995, in _check_conflict
    option)
optparse.OptionConflictError: option -F/--fixtures: conflicting option string(s): --fixtures

@pytestbot
Copy link
Contributor Author

Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42):


pytest has itself (with 2.3) an --fixtures option now. I suspect you have a custom option with the longname "--fixtures" in your test configuration, right? This is conflicting. I am afraid you need to rename it - or we think of a better name for pytest itself.

@pytestbot pytestbot added the type: bug problem that needs to be addressed label Jun 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug problem that needs to be addressed
Projects
None yet
Development

No branches or pull requests

1 participant