logilab-common #37908 Pytest run function does not accept args [deprecated]

Description

The run function should accept some arguments.

Why?

A short example: the project_root function accepts a default projdir argument that was initialized during the import: projdir=os.getcwd(). Problem, we cannot specify a pytestconf.py path efficently even if we manually change the current working directory before launching run().

A hack can be used: pytest.project_root.func_defaults = (my_path,), this is ugly.

priorityimportant
typeenhancement
done in<not specified>
load0.000
load left0.000
closed by<not specified>