From 57b32eaad9c9cba197bb897e7437d5ba3fa4625a Mon Sep 17 00:00:00 2001 From: Zac-HD Date: Sun, 17 Mar 2019 10:54:22 +1100 Subject: [PATCH] Register mark used by pytester --- src/_pytest/pytester.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/_pytest/pytester.py b/src/_pytest/pytester.py index d5faed41820..d399abf2c2e 100644 --- a/src/_pytest/pytester.py +++ b/src/_pytest/pytester.py @@ -67,6 +67,12 @@ def pytest_configure(config): if checker.matching_platform(): config.pluginmanager.register(checker) + config.addinivalue_line( + "markers", + "pytester_example_path(*path_segments): join the given path " + "segments to `pytester_example_dir` for this test.", + ) + def raise_on_kwargs(kwargs): if kwargs: