We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 946466a commit a6b2732Copy full SHA for a6b2732
doc/en/usage.rst
@@ -318,15 +318,13 @@ You can specify additional plugins to ``pytest.main``::
318
def pytest_sessionfinish(self):
319
print("*** test run reporting finishing")
320
321
- pytest.main("-qq", plugins=[MyPlugin()])
+ pytest.main(["-qq"], plugins=[MyPlugin()])
322
323
Running it will show that ``MyPlugin`` was added and its
324
hook was invoked::
325
326
$ python myinvoke.py
327
*** test run reporting finishing
328
329
- ======= pytest-warning summary ========
330
- WC1 None passing a string to pytest.main() is deprecated, pass a list of arguments instead.
331
332
.. include:: links.inc
0 commit comments