Use {node,config}.stash instead of ._store

Use the public name. The `_store` name is only because some plugins
started using it anyway - will be removed at some point.
This commit is contained in:
Ran Benita
2021-07-18 14:18:03 +03:00
parent c6bdeb8491
commit 2aaea20cb2
11 changed files with 46 additions and 46 deletions

View File

@@ -269,7 +269,7 @@ def pytest_collection_modifyitems(items: "List[Item]", config: Config) -> None:
def pytest_configure(config: Config) -> None:
config._store[old_mark_config_key] = MARK_GEN._config
config.stash[old_mark_config_key] = MARK_GEN._config
MARK_GEN._config = config
empty_parameterset = config.getini(EMPTY_PARAMETERSET_OPTION)
@@ -282,4 +282,4 @@ def pytest_configure(config: Config) -> None:
def pytest_unconfigure(config: Config) -> None:
MARK_GEN._config = config._store.get(old_mark_config_key, None)
MARK_GEN._config = config.stash.get(old_mark_config_key, None)