Open bramwelt opened 1 year ago
Workaround I used:
pip uninstall pytest
pip install pytest==7.2.2
Same issue here, same work around works (pinning in poetry).
yeah, same here. pytest < 7.3.0 solves it, but should't be the permanent solution.
https://github.com/pytest-dev/pytest/blob/ef982aaf2bce28d6b27e24756a4d29377a593a1d/src/_pytest/mark/structures.py#L211 pytest has done some weird thing where they've defined the Mark
as a dataclass but then also overridden the init method so that the names of the arguments are different so I can't even do dataclasses.replace
onm it. I think this will end up having to be a horrible hack but I am just going to pin pytest to <7.3 for now
https://github.com/taverntesting/tavern/pull/901 This does fix it , unsure of what effect this will have on downstream projects though. I'd hope that most people wouldn't be depending on a specific version of Pytest
Pytest's most recent release of 7.3.0 removes their reliance on the external
attrs
package. This package is used for custom marks and the following kinds of errors are reported when ran with it:Including
attrs
in dependencies isn't enough to fix the issue. Restrictingpytest<7.3.0
is currently the only fix I've found.Can Tavern be updated to work with the newest version of pytest?