diff options
author | Ran Benita <ran@unusedvar.com> | 2020-12-26 21:23:23 +0200 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2020-12-26 21:38:37 +0200 |
commit | 96ea867fec556a8d0e2b60392927572da38c88df (patch) | |
tree | b707a925e9f7655ae157da7927df80c4855d8e62 /src/pytest | |
parent | bd76042344b3c3318dddf991c08d49bbce2251bb (diff) | |
download | pytest-96ea867fec556a8d0e2b60392927572da38c88df.tar.gz |
runner: export pytest.CallInfo for typing purposes
The type cannot be constructed directly, but is exported for use in type
annotations, since it is reachable through existing public API.
This also documents `from_call` as public, because at least
pytest-forked uses it, so we must treat it as public already anyway.
Diffstat (limited to 'src/pytest')
-rw-r--r-- | src/pytest/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pytest/__init__.py b/src/pytest/__init__.py index f97b0ac2e..53917340f 100644 --- a/src/pytest/__init__.py +++ b/src/pytest/__init__.py @@ -48,6 +48,7 @@ from _pytest.python_api import raises from _pytest.recwarn import deprecated_call from _pytest.recwarn import WarningsRecorder from _pytest.recwarn import warns +from _pytest.runner import CallInfo from _pytest.tmpdir import TempdirFactory from _pytest.tmpdir import TempPathFactory from _pytest.warning_types import PytestAssertRewriteWarning @@ -69,6 +70,7 @@ __all__ = [ "_fillfuncargs", "approx", "Cache", + "CallInfo", "CaptureFixture", "Class", "cmdline", |