diff options
Diffstat (limited to 'src/_pytest/hookspec.py')
-rw-r--r-- | src/_pytest/hookspec.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/_pytest/hookspec.py b/src/_pytest/hookspec.py index 33ca782cf..e499b742c 100644 --- a/src/_pytest/hookspec.py +++ b/src/_pytest/hookspec.py @@ -809,6 +809,27 @@ def pytest_warning_recorded( # ------------------------------------------------------------------------- +# Hooks for influencing skipping +# ------------------------------------------------------------------------- + + +def pytest_markeval_namespace(config: "Config") -> Dict[str, Any]: + """Called when constructing the globals dictionary used for + evaluating string conditions in xfail/skipif markers. + + This is useful when the condition for a marker requires + objects that are expensive or impossible to obtain during + collection time, which is required by normal boolean + conditions. + + .. versionadded:: 6.2 + + :param _pytest.config.Config config: The pytest config object. + :returns: A dictionary of additional globals to add. + """ + + +# ------------------------------------------------------------------------- # error handling and internal debugging hooks # ------------------------------------------------------------------------- |