logilab-common #37908 Pytest run function does not accept args [deprecated]
DescriptionThe 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. | |
priority | important |
---|---|
type | enhancement |
done in | <not specified> |
load | 0.000 |
load left | 0.000 |
closed by | <not specified> |