Skip to content

Pytest 8 introduced breaking changes: make fixes to align with Pytest 8 #22798

@eleanorjboyd

Description

@eleanorjboyd

changelog for pytest 8: https://docs.pytest.org/en/latest/changelog.html
tests fail for repo because session.name of this change:
[session.name](https://docs.pytest.org/en/latest/reference/reference.html#pytest.Session.name) is now ""; previously it was the rootdir directory name. This matches [session.nodeid](https://docs.pytest.org/en/latest/reference/reference.html#pytest.nodes.Node.nodeid) which has always been "".

Metadata

Metadata

Assignees

Labels

area-testingbugIssue identified by VS Code Team member as probable bugcandidateIssue identified as probable candidate for fixing in the next releaseverification-neededVerification of issue is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions