malexer / pytest-spark

pytest plugin to run the tests with support of pyspark
MIT License
85 stars 30 forks source link

Incompatibility with pytest 8.1.0 #24

Closed pcjedi closed 8 months ago

pcjedi commented 8 months ago

since pytest 8.1.0 pytest-spark fails with the following error:

pluggy._manager.PluginValidationError: Plugin 'spark' for hook 'pytest_report_header'
hookimpl definition: pytest_report_header(config, startdir)
Argument(s) {'startdir'} are declared in the hookimpl but can not be found in the hookspec

i suppose this is due to the removal of the deprecated startdir startdir usage in pytest-spark pytest/compare/8.0.2...8.1.0 src/_pytest/hookspec.py 771 pytest docu

the solution could be to rename startdir into start_path

pcjedi commented 8 months ago

pytest 8.1.0 was yanked https://pypi.org/project/pytest/8.1.0/