sigh. No, I put the command options into a configs.py file, because of problems I encountered 5 years ago getting options to work with other parameters, as documented here: https://stackoverflow.com/questions/15794038/unable-to-run-py-test-from-command-line-when-using-a-marker-and-text-fixture-opt
Two years ago I refactored to stop using the separate runner.py file, and the comma options worked fine. Yes, moving the options into the conftest.py file works. I don't understand why the configs.py approach no longer works, but working code is a good resolution ;) thanks! --derek On Sun, Jul 29, 2018 at 12:07 AM, Florian Bruhin <m...@the-compiler.org> wrote: > On Sat, Jul 28, 2018 at 03:12:30PM -0700, Derek Sisson wrote: > > I've been using command line options for years, but they no longer work > for > > me. I get the message "unrecognized arguments". > > Works fine here (with 3.6.4 as well). > > > As a sanity check, I used the example from the documentation on > > https://docs.pytest.org/en/latest/example/simple.html? > highlight=addoption > > And you put that in a (correctly spelled) > /Users/derek/dev/example/example/conftest.py file? > > Florian > > -- > https://www.qutebrowser.org | m...@the-compiler.org (Mail/XMPP) > GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc > I love long mails! | https://email.is-not-s.ms/ > -- thanks, --derek
_______________________________________________ pytest-dev mailing list pytest-dev@python.org https://mail.python.org/mailman/listinfo/pytest-dev