Skip to content

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

@pytestbot

Description

@pytestbot

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugproblem that needs to be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions