Skip to content

Backward compatibility issue using config._metadata #70

@yoshigev

Description

@yoshigev

Hi,

Up until version 3.0.0, the documentation stated that the metadata could be accessed from a plugin using the following code:

   config._metadata['foo'] = 'bar'

Now, using the above code results in an error: AttributeError: 'Config' object has no attribute '_metadata'.

I saw that the release notes of 3.0.0 states "Use pytest.stash internally instead of _metadata".
I don't thinks such a change is an internal one...

Can backward compatibility be maintained somehow?

Thanks,
Yehoshua

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions