You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Original comment byholger 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.
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:
The text was updated successfully, but these errors were encountered: